
This talk was given at ViennaJS April 2024 by Maximilian Zauner.
JavaScript Generators have been around for a while, yet many developers shy away from using them. In this talk, we'll explore why generators are often overlooked and how they can make your life easier in certain situations.
We'll dive into the differences between generators and promises, discuss the concepts of push and pull, hot and cold promises, and provide a decision tree to help you determine when to use generators over promises.
Through code examples you'll gain a deeper understanding of how generators work and how to effectively incorporate them into your JavaScript projects.
By the end of this talk, you'll walk away with the confidence to embrace generators and the knowledge of when and how to use them to simplify your code.
Whether you're a seasoned JavaScript developer or just starting out, this talk will provide you with valuable insights and practical techniques to add to your toolkit.