~/talk

No more pyramids -- Tools to keep callbacks neat

Talkat Reject.JS 2013 · on Thursday, 2013-09-12· [nodejs]
slides:none on file

Claims that deep nested callbacks (examples with five levels deep) make code untestable and hard to reason about and shows incremental fixes: name callbacks and use Function.bind for partial application to make handlers testable; adopt async.js for common flow patterns (waterfall, parallel, map) and switch to promises to treat pending results as immediate IOUs (examples with three queries / three files and the tweedart project); demos glue code that uses ES6 generators plus yield to await async results in Node 0.11 (harmony) and Chrome Canary.

AI-written summary · about

  1. 0:00Introduction
  2. 6:45HTHJS
  3. 9:13Root problem
  4. 10:14Promises
  5. 16:43Weight
  6. 24:08Parallel processes
  7. 25:51Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.