~/talk

In Many Cases, Promises May Make For A Better Pattern Than async/await

Talkat UtahJS Conf 2023 · on Friday, 2023-09-15· [javascript]
links:none on file
slides:none on file

Promises often make for clearer, safer patterns than async/await by giving honest return types up front, cheaper error handling, and easier parallelism. Practical contrasts include try/catch vs .catch for error plumbing, using Promise.all parallelism instead of accidentally serial awaits, and a real refactor that shrinks a messy handler from 64→58→40 lines. Promise chaining isolates steps, reduces branching, and nudges code toward functional patterns like piping and mapping.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:18Async await and its drawbacks
  3. 7:00Complexity and abstractions
  4. 16:26Addressing strawman arguments
  5. 21:48Real world examples
  6. 27:22Functional programming benefits
~/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.