~/talk

JavaScript is AsynchroWAT?

Talkat JSConf Hawai 2019 · 2019-02-07..02-08· [javascript, developer-experience]
slides:none on file

A developer story starts with integrating Stripe into Salesforce and discovering JavaScript callbacks block work because responses arrive later; code examples show a blocking AJAX pattern, then a nested callback hell implementation with setTimeout-based waits and ad hoc error checks, a promise-based rewrite with .then/.catch and a pizza promise example, and finally an async/await refactor that returns Promises and reads synchronously; the hair-care analogy maps each async step and the refactors clearly run and improve readability and error handling.

AI-written summary · about

  1. 0:00Start
  2. 0:36Once upon a time...
  3. 2:01My "LOGIC" is correct!
  4. 4:53What does synchronous mean?
  5. 5:29Doing household chores...
  6. 6:17Asynchronous programming
  7. 9:30Synchronously...
  8. 10:29Callbacks!
  9. 13:21I need to add error handling!
  10. 21:27In closing...
~/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.