Redemption from Callback Hell
summary
Argues that callback hell is real and shows concrete fixes: Promises as asynchronous values, a Promises A+ spec and test suite that forced correct implementations, and three working libraries—Q, RSVP, when.js—with helpers like denodeify, Q.all and q.async that turn callbacks into promise chains and integrate with ES6 generators. Demonstrates a promise-based HTTP server pattern that propagates errors to a single catch and returns 500s reliably, and reports the spec+tests actually fixed many real bugs.
AI-written summary · about
chapters (11)
- 0:00Intro
- 1:01REDEMPTION CALLBACK HELL
- 7:18IN A CALLBACK, THERE IS NO STACK
- 11:51THE FUTURE IS ES6 GENERATORS
- 13:34PROMISES A+
- 21:58A PROMISE IS AN ASYNCHRONOUS VALUE
- 22:31THERE ARE 4 BASIC SYNC TO ASYNC TRANSFORMS
- 29:45OPERATIONS IN SEQUENCE
- 31:23HANDLING EXCEPTIONS
- 43:32EXECUTE OPERATIONS IN PARALLEL
- 45:35BUILD FAULT-TOLERANT SERVERS
related talks
34mDitching Promises and Socially Acceptable Callback Hell
32mPromises Are So Passé
42mBeyond Promises: Async Patterns in JavaScript
45mPromises — It Doesn't Have to Hurt
47mPromise-Based Architecture
14mThe Promised Path to Async, Awaits
30mParadigms for dealing with asynchrony
41mNext Generation Asynchronous Patterns in JavaScript
