~/talk

Beyond Promises: Async Patterns in JavaScript

Talkat THE CONF 2017 · on Monday, 2017-10-02· [javascript]
links:none on file
slides:none on file

Hands-on tour of patterns that replace callbacks with concrete code and results: Node + Socket.IO chat proves callbacks work but read poorly; Promises give composable futures; async/await shortens control flow; RxJS consumes a 200ms stream, takes the first ten values and reduces them to one; channel-style CSP uses generators to produce and consume ten values without blocking; an actor demo with the comedy library sends a message and runs a blocking computation off-thread so the main loop keeps printing dots; Babel is used for newer generator/await syntax.

AI-written summary · about

  1. 0:00Intro
  2. 2:38Sleep function
  3. 3:58Progress function
  4. 6:15Name functions
  5. 7:52Ik specification
  6. 9:13Rewrite server example
  7. 10:59Async
  8. 11:21Async Example
  9. 13:02Reactive Async
  10. 15:11Lazy Async
  11. 16:57oops
  12. 18:19Channels
  13. 19:21Generators
  14. 20:34Business Implementation
  15. 24:21Reactive Extensions
  16. 26:56Terminal Exercise
  17. 29:28Actor Based Programming
  18. 39:32Summary
~/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.