~/talk

ES6+ Asynchronous Programming and Practical Error Handling

TalkinKoreanat FEConf 2019 · on Saturday, 2019-10-26· [javascript]
links:none on file
slides:none on file

Shows a concrete ES6+ example that sums image heights where loadImage returns a Promise but wrong URLs and unordered load events cause missing heights and retries that produce duplicate side effects (double POSTs). Presents a rewrite that passes dependencies as arguments, uses Promise/async–await composition and a small resolver/channel pattern to sequence calls, and argues that composing pure async functions while allowing errors to bubble yields simpler, more reliable error handling and global failure reporting.

AI-written summary · about

  1. 0:00ES6+ async intro
  2. 4:03Image heights with Promises
  3. 8:31Error handling matters
  4. 14:52Async error handling
  5. 21:18Pure functions and errors
  6. 28:36Error handling best practices
  7. 33:23Functional error handling
  8. 37:50Q&A
~/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.