Untangle your code with yield – Staś Małolepszy / Front-Trends 2016

Thanks! Share it with your friends!

You disliked this video. Thanks for the feedback!

Added by admin
Tickets are on sale for Front-Trends 2017, May 24-26. Get'em while they last at https://2017.front-trends.com/. Team Discounts available!

Generators and iterators are among the most enigmatic and underused features of ECMAScript 2015. They can be used to create custom iterables and infinite sequences. Lesser known applications include controlling asynchronous operations and handling side effects.

In this talk I'll demonstrate how generators can be successfully used to write elegant and performant code. I'll start by explaining how they work and what they are good for. I'll then show you how to bend the rules of space and time, and how to tame Promises and other abstractions with yield. Finally I'll present a hands-on example of how generators can be used to refactor code which otherwise would be tedious to maintain and reason about.
Front-Trends 2016

Post your comment