~/talk

Ditching Promises and Socially Acceptable Callback Hell

Talkat NDC Oslo 2018 · 2018-06-11..06-15· [javascript]
speakerdeck:bsatrom
slides:none on file

Argues that Promises are just structured callbacks and shows concrete migrations: wrapping navigator.geolocation in a Promise, building device-list and device-function chains against the Particle cloud API, a generator-based "steps" demo that yields fetch results, and then a shorter rewrite using async/await. Demonstrates Promise chaining, Promise.all and error handling with try/catch, notes browser support (all except Internet Explorer) and Node 7.6+, and proves the demos work while claiming async/await yields clearer, more maintainable flow.

AI-written summary · about

  1. 0:00Start
  2. 1:00Ajax Asynchronous Javascript and Xml
  3. 1:42Jquery Ajax
  4. 8:29Working with the Geolocation Api
  5. 13:37Who Uses Promises
  6. 15:40Particle Console
  7. 23:22Es6 Iterators and Generators
  8. 26:24Create Synchronous Looking Ajax Code
  9. 29:57Support for Async Await in all Browsers Not Named Internet Explorer
  10. 31:20Handle Errors
~/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.