~/talk

Error handling: doing it right!

Talkat JSNation 2019 · 2019-06-05..06-08· [javascript, developer-experience]
slides:none on file

Shows that missing async stacks and swallowed rejections cause most debugging pain and that Node 12+ restores call sites with zero-cost async stack traces. Recommends concrete fixes: use util.promisify instead of manual Promise constructors, switch unhandled-rejection to throw so the process exits, publish shared application error classes in a private module, and add a retry-with-delay for flaky APIs (Facebook Graph returned error code 1200 about 25% of the time) which materially improves reliability.

AI-written summary · about

  1. 0:00Intro
  2. 1:44Callbacks
  3. 2:16Promises
  4. 5:08Primitive errors
  5. 8:28Nested try / catch
  6. 12:47Unhandled rejections
  7. 13:33Error classes
  8. 17:42Express
  9. 21:16Requests
  10. 22:50util.promisify
  11. 24:48Async Stack traces
  12. 26:01Summary / Rules
~/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.