Improvisational JavaScript
summary
Claim: apply Tina Fey’s improv rules from Bossypants to JavaScript error handling so UIs keep working instead of throwing. Concrete moves: cache form inputs, autocomplete and Always say yes, return chainable context objects and say yes and, reflect state and Make statements, fall back to numeric IDs for non‑unique usernames, retry XHRs, prefer error‑first callbacks/promises over try/catch. Examples named: jQuery $ behavior, Node style callbacks, XHR retries; these strategies get built as forgiving APIs that preserve flow rather than crashing.
AI-written summary · about
chapters (23)
- 0:00Intro
- 0:38bossypants
- 1:20fallibility
- 2:39key difference
- 2:57comedy
- 3:34rules of improv
- 5:10improv for machines
- 6:12SAY YES, AND
- 9:02agreeing in the real world
- 11:01MAKE STATEMENTS
- 12:44NO MISTAKES
- 14:51real world error
- 15:33when things just fail
- 17:24agreeable functions
- 17:49affirmative return values
- 18:46imperative states
- 20:46errors
- 21:08the golden rule
- 21:50language features
- 23:19the future
- 24:16uncertainty is hard
- 25:00uncertainty is awesome
- 25:42JavaScript wants to be hilarious








