Introduction to ES6 Promises - The Four Functions You Need To Avoid Callback Hell

added by bpwndaddy
6/1/2015 3:21:31 PM

3 Kicks, 152 Views

Apart from being new and shiny, Promises are a great way to clean up your code, reduce dependencies on external libraries, and prepare yourself for async and await in ES7. Developers who use them swear by them, and developers who don’t just don’t know what they’re missing. That said, promises can take a lot of work to understand. They feel completely different to the callbacks which we often use to accomplish the same thing, and there are a few surprises in their design which often cause beginners hours of debugging pain.


0 comments