E4E Developer Conf 2014 - Syncing Async by Kyle Simpson

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=-wYw0bZZ38Y



Duration: 42:26
6,043 views
50


I bet you think “callback hell” is about function nesting and levels of indentation. Not so much. I bet you’ve heard that Promises replace callbacks. Nope.

We need some clarity on what async flow control is all about in JavaScript. We’ll explore the perils of “Inversion of Control”, and see just what hell that leads us to. Then we’ll talk about promises as “continuation events” for function calls, and abstractions on top of promises that clean up our code. Finally, we’ll see how generators give us synchronous-looking async, and even how we can create cooperative concurrency with coroutines.

Yield those confused async notions and control your flow. I promise we’ll get your thoughts in order.

Help us caption & translate this video!

http://amara.org/v/FSPF/