~/talk

Avoid the headaches – make your asynchronous code look synchronous!

Talkat Voxxed Days Singapore 2017 · on Friday, 2017-06-02· [javascript]
slides:none on file

Live coding shows refactoring a nested callback-heavy legacy codebase into code that reads sequentially using promises, generators and coroutines, replacing manual counters and callback juggling with Promise chains and Promise.all, then feeding promises into generators to yield results synchronously. The demo implements debounce search with an observable-style stream, cuts roughly twenty lines of ad hoc error-handling logic, and previews async/await as the next simplification; the refactored examples execute correctly on stage and surface the traps to avoid when migrating.

AI-written summary · about

  1. 0:00Start
  2. 0:09AVOID THE HEADACHES
  3. 13:00A SECRET ABOUT PROMISES (THAT SHOULDN'T BEONE)
  4. 13:38PROMISES & CHAINING WITH PROMISES!
  5. 16:01PROMISES & CHAINING WITH. PROMISES!
  6. 17:28PROMISES IN PARALLEL
  7. 20:44OTHER PROMISE METHODS
  8. 23:402-WAY COMMUNICATION WITH ERRORS
  9. 27:34GENERATORS AND PROMISES WITH COROUTINES
  10. 29:36ASYNC FUNCTIONS
  11. 29:55ASYNC GENERATOR FUNCTIONS
  12. 31:06WHAT'S MISSING?
  13. 31:46OBSERVABLES
  14. 34:56REACTIVE PROGRAMMING
  15. 39:23A random TV show: Blue Mountain State
~/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.