~/talk

Promise-Based Architecture

Talkat Spotlight Front-End 2014 · on Saturday, 2014-11-29· [javascript, frontend-architecture]
slides:none on file

Explains why promises beat Node-style callbacks for architecture by letting request-making functions return an object that callers attach handlers to later, shows concrete code patterns in Angular and Q, warns about the q.defer anti-pattern and how to convert node callbacks with a dnotify helper, demonstrates caching, prefetching and putting requests on hold until authentication, covers testing by returning promises to Mocha, notes q.when/q.reject, introduces ppipe composition with Ramda and mentions ES6 yield/co for unwrapping promises.

AI-written summary · about

  1. 0:00Introduction and resources
  2. 0:42Why use promises?
  3. 3:01Promises vs callbacks
  4. 6:16Promises vs pub/sub
  5. 10:56Chaining and debugging
  6. 16:54The fundamental axiom
  7. 21:18Handling errors
  8. 27:16Passing the buck
  9. 30:39Testing promises
  10. 32:07Creating promises
  11. 35:46Best practices
  12. 40:33Advanced techniques
~/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.