GRDevDay Presentation Recap: From Callback Hell to the JavaScript “Promise” Land

If you had the opportunity to attend my presentation at the 2014 GRDevDay, thank you for coming out to see me. You’ll find the abstract, presentation, and additional resources in this post.


Photo by @MSFTW


We’ve all been there: buried 15 layers deep in JavaScript functions wondering where in the Callback Hell we are. How did we get here? Handling asynchronous code forces us to build an unmanageable stack of function calls, often leaving us buried beneath them. Is there a better way to handle this? Luckily, there is; I promise.

JavaScript promises give us an elegant way to handle asynchronous code. Through the power of its “then” method, we’re able to chain, instead of stack, our logic together. We’ll dive into the core of promises, as well as how to break apart common Callback Hell scenarios into beautiful method chains that’d make the most experienced developer shed a tear.


Open presentation in a new window.

Source Code

Source for the demo application as well as the presentation can be found on GitHub: Martinez Media Demos on GitHub.

The presentation is located under MartinezMediaDemos / MartinezMediaDemos / Presentations / From-Callback-Hell-to-the-JavaScript-Promise-Land / .

Additional Reading Material


Copyright © 2006 – 2016, Brandon Martinez. All rights reserved. A Martinez Media site.