DEV Community

TCZ
TCZ

Posted on

1

generator+promise

I saw a generator+promise pattern that intends to make asynchronous code as easy to understand as synchronous code.

However, with async+await, we don't need the generator+promise pattern anymore. And it seems to me that async+await is the neater way to make asynchronous code as easy to read as synchronous code.

Top comments (0)

This post blew up on DEV in 2020:

js visualized

🚀⚙️ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! 🥳

Happy coding!

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay