You Deserve Nice Things
summary
Argues four concrete rules for adding extensions: add them when they increase expressiveness (example: an eachPair extension built from zip + dropFirst, and a generic sum/average for Numeric), when they reduce noise (operator overloads for Int × CGFloat, any/all/none helpers), when they can optimize (countWhere to avoid intermediate arrays, reversed collections that avoid copying), and only if the feature belongs on every instance (avoid stuffing request parsing into Dictionary); shows working code and measurable improvements.
AI-written summary · about
chapters (11)
- 0:00Introduction and welcome
- 1:04Why Apple’s APIs are lacking
- 6:43Four rules for useful extensions
- 11:59Rule one: Increase expressivity
- 13:26Rule two: Decrease noise
- 16:22Rule three: Optimize where possible
- 19:46Rule four: Type relevance
- 21:56Practical extension examples
- 25:44Sources of inspiration
- 28:54UIKit’s missing conveniences
- 31:00Summary and closing
