~/talk

Asynchronous JS without the cringe

TalkinFrenchat Codeurs en Seine 2022 · on Thursday, 2022-11-17· [javascript]
slides:none on file

The talk explains how to use JavaScript promises and async/await correctly, fixing common mistakes like mixing .then() chains with async/await, unnecessary return await, async functions without await, and incorrect use of map() with async. It shows proper mental models and techniques (including for-await-of and ways to achieve parallelization) to write concise, clean, and performant asynchronous JS code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:54Promise problems
  3. 3:00Promises vs callbacks
  4. 6:27Common anti-patterns
  5. 10:42Useless promise returns
  6. 14:54Sequences vs parallelism
  7. 18:28Async loops
  8. 21:38Style mix traps
  9. 24:45Manual promise chains
  10. 28:43Scope issues and fixes
  11. 31:55Async/await benefits
  12. 36:37Explicit vs implicit
  13. 39:04Summary and best practices
  14. 41:07Box 2 years demo
  15. 42:09Q&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.