~/talk

PIMP Your JS Library or Desgning Non-Shit APIs with JavaScript

Talkat JSConf US 2011 · 2011-05-02..05-03· [javascript, developer-experience]
slides:none on file

Argues that API design wins or loses on concrete choices: shows a tiny DOM builder that maps strings to nodes, a queued connect API that hides readiness and batches calls (used at Twitter), and a dependency system like loadrunner built with prototypal inheritance and duck typing. Calls out real pain points: the DOM event signature, the odd replaceNode ordering, and 28 options in jquery UI draggable. Demonstrates defaults, option hashes, underscored internal methods and overridable selector hooks — and that these approaches actually simplify real libraries.

AI-written summary · about

  1. 0:00Intro
  2. 1:12The Beginning
  3. 3:03Why did it happen
  4. 3:52Designers of APIs
  5. 4:25Predictability
  6. 5:53How to be predictable
  7. 7:07Camelcase
  8. 7:42Polyfill
  9. 8:59Popular Libraries
  10. 10:21Problem Domain
  11. 11:13Example
  12. 13:54Simplicity
  13. 15:07The Problem
  14. 17:34Optional Hashes
  15. 18:53Function Calls
  16. 21:44Masking Complexity
  17. 25:04Simplifying DOM
  18. 27:05Flexibility
  19. 31:47Highorder functions
  20. 33:16Inheritance
  21. 35:26Duct typing
  22. 36:51Summary
~/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.