Paradigms for dealing with asynchrony
summary
Compares concrete tradeoffs between callbacks vs promises vs observables vs CSP, shows code from a Khan Academy app where an exercise task flow is implemented two ways, and reports a small visualization library was prototyped but abandoned; notes Node is changing unhandled promise behavior and Chrome 55 adds native async/await, and demos js‑csp generator style code that blocks on yields. Emphasizes which primitives cache values, how many values they carry, who can cancel or write, and where mental overhead or debugging pain actually appears.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:51Why should you care
- 2:19The callback paradigm
- 3:11Error callbacks
- 3:50Promises
- 5:21Async await
- 6:16Observables
- 10:08Attributes
- 13:22Push vs Pull
- 17:50CSP vs Callbacks
- 19:20Callbacks Pros and Cons
- 22:00CSP Pros and Cons
- 24:34Questions
related talks
42mBeyond Promises: Async Patterns in JavaScript
32mPromises Are So Passé
14mThe Promised Path to Async, Awaits
01h 04m5 architectures of asynchronous JavaScript
32mThe Evolution Of Asynchronous Javascript
25mAsynchrony: Under the Hood
49mA Beginner's Guide to Wrangling Asynchronicity in JavaScript
57m5 architectures of asynchronous JavaScript
