Stop being Perfect
summary
Argues that strict rules break more often than they help and shows concrete alternatives: using string constructor identity to distinguish wrapped strings, using array constructor preallocation for hot loops and tricks like join-based repeat and sparse-array ranges, preferring call/apply over heavy classical inheritance, treating x == null as a practical null-or-undefined check, using the comma operator to force global eval and to combine expressions in loop heads, and noting Prototype.js additions (bind, trim) that later became ES5.
AI-written summary · about
chapters (16)
- 0:00Introduction and imperfections
- 1:05About the speaker
- 2:33History of JavaScript perfectionism
- 5:26Why imperfection matters
- 7:55Innovation beyond constraints
- 8:39Context over dogma
- 11:31Classical inheritance pitfalls
- 13:41Array constructor tricks
- 15:04Equality operators explained
- 17:13With statement and math
- 19:00Block scope alternatives
- 20:08Comma operator uses
- 23:17Functional programming idioms
- 24:40Learning through play
- 26:08Experimentation in code
- 27:56Summary and key takeaways
