~/talk

Put on your asynchronous hat and node

Talkat Web Directions Code 2013 · 2013-05-02..05-03· [nodejs, web-performance]
github:marcfasel
slides:none on file

Node.js runs JavaScript on a single thread and gets massive concurrency by offloading slow IO to the OS — IO can be ~100,000× slower than CPU work — so filesystem and HTTP calls are always asynchronous. Examples show fs.readdir vs readdirSync, then a serial Pyramid of Doom from nested callbacks and tedious error checking, and two fixes: control-flow libs like async.js (series/parallel/map) and Q promises with chaining and q.all for parallel results and exception-style error bubbling.

AI-written summary · about

  1. 0:00Intro
  2. 0:16Put On Your Asynchronous Hat and Node
  3. 1:01What is an Asynchronous Hat?
  4. 3:57Different Mindsets
  5. 8:10Asynchronous Code
  6. 10:12Asynchronous Parallel Execution
  7. 13:36Event Mechanisms
  8. 14:21Single Callback Functions
  9. 18:47World With Exceptions
  10. 19:38World Before Exceptions
  11. 22:33Callback Error Handling
  12. 23:17Event Emitter Error Handling
  13. 23:37Pyramid of Doom With Error Handling
  14. 24:00Asynchronous Error Handling
  15. 25:29Nesting Named Callbacks
  16. 26:01Control Flow libraries
  17. 27:55Series
  18. 30:28Functional Constructs
  19. 32:10Promises
  20. 36:11Promise Chaining
  21. 37:58Promise Error Handling
~/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.