Write better JavaScript code | JS Best Practices (Promise.all/Destructuring)

preview_player
Показать описание
In this video, we will try to improve on an existing JS function using the concepts of concurrent async operations, destructuring, and code reusability. It's more like a working session where step by step we will improve our function and also go over each of the concepts in detail.

Chapters:
0:00 Intro
0:34 Overview of the `BAD` code
2:49 Independent and Dependent API calls
7:36 Destructuring and Reusability of code
Рекомендации по теме
Комментарии
Автор

What are the other improvements that can be made to the function?
1. Error handling
2. ?

MayankSrivastava
Автор

I've only had this experience while watching cooking videos. You've done an excellent job of explaining things. Thanks

boneyupadhyay
Автор

JS Concurrency, Async operations, Destructuring, Code Reusability and Re-Factoring for succinct code - Beautifully explained. Thank you, Mayank

{2022-09-20}

Pareshbpatel
Автор

Thank you so much for the clear explanations on some of the important topics in JavaScript. Please do more videos. Thanks.

sasikaadesh
Автор

Loved the format and learned a few cool tricks

cr
Автор

You could add a .then(...) to your axios.get() that returns it in the format you want, then you wouldn't need to to the foreach :) Also imo too much destructuring makes things really hard to read, but I think that's more of a personal preference kind of thing :)

shrooobdude