Promises and Generators: control flow utopia

Forbes Lindesay talks about how ES6 generators can help you make your asynchronous code easier to understand in terms of synchronous concepts. He discusses the alternative values you can use to represent a future and how they are all ultimately promises. Slides here.…

Promise.map

I'm getting more and more into promises (which are basically the holy grail of asynchronous control flow) This answer highlights the importance of the .map method.…

Promises and the Inversion of Control

The problem with callbacks is that they force you to defer the responsability of the control flow to the asynchronous function you are invoking. Promises are meant to solve this problem. Rest of the article here…

JavaScript Engine and 'the sense of time'

In other words, the JS engine has had no innate sense of time, but has instead been an on-demand execution environment for any arbitrary snippet of JS. It's the surrouding environment which has always scheduled "events" (JS code executions). (You don't know JS - Async and performance)…