~/talk

Sharing is Caring - Patterns for JavaScript Library Design

Talkat JSConf EU 2017 · on Sunday, 2017-05-07· [developer-experience]
slides:none on file

Describes concrete API decisions: compares static invocation (Request, LoDash) with factory/chaining (Q, jQuery, Moment), shows how an overloaded Moment constructor spawns support load (2,400 closed issues, 176 open) and argues required params then an options object cleans parsing, highlights best by default (Request auto-follows redirects) vs no obvious default (Moment time/UTC confusion), and recommends throwing clear developer errors (Immutable rejects bad constructors) while keeping defaults only when a single right answer exists.

AI-written summary · about

  1. 0:00Start
  2. 7:24Invocation
  3. 10:41Configuration
  4. 14:39Defaults
  5. 21:31Good! Bad user input doesn't crash the Node.js process.
  6. 22:06Throw on Obvious Developer Error
~/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.