JS UX: Writing Code for Humans
summary
Watch if wanting concrete API rules plus working demos: claims like documentation is the last resort, concrete fixes (sensible defaults, accept multiple input types, avoid boolean traps, order params by importance), examples from native APIs (URL, SVG DOM, compareDocumentPosition), small tools and polyfills shown (chainvas, a multi-range polyfill, Prism, fetch usage, MutationObserver for responsive layout), evidence from dozens of open source projects with thousands of merged pull requests, and actual replacements that remove error cases. Ignore if only looking for high‑level UX theory.
AI-written summary · about
chapters (15)
- 0:00Start
- 5:42Sensible defaults
- 7:32Be liberal in what you accept
- 13:00Parameter traps
- 21:33Unnecessary error conditions
- 23:39Order parameters by importance
- 25:06Double Negatives
- 33:04Redundancy
- 34:36Accessor functions
- 38:55Use few simple words, whole
- 40:24Describe what it does, not how it works
- 43:50Boilerplate
- 45:27Thou shalt respond to changes
- 47:51IntersectionObserver
- 52:41Thou shalt also have an HTML API








