It's my way or the highway - How to make your code usable by others
summary
Explains concrete rules and patterns that make libraries easy to use: prefer constructor final to force required attributes and explicit interfaces so consumers don’t read internals, wrap collections and avoid primitive obsession, enforce small methods with one line per method and early returns instead of deep nesting, use command bus for pipelines and strategy injection to let users swap behavior, and favor zero-configuration modules like the Objective C keyboard manager that “just works” rather than fragile APIs.
AI-written summary · about
chapters (14)
- 0:00Introduction and personal story
- 1:30Problem with libraries and abstraction
- 3:18Overcomplicating code basics
- 4:44Refactoring and design principles
- 6:31Object calisthenics explained
- 8:15What makes code usable
- 9:22Code should lead developers
- 10:26Interfaces as contracts
- 11:49Abstract classes in practice
- 13:13Traits and strategy pattern
- 14:18Exceptions and validation
- 15:20Developer UX matters
- 16:02Strategy and command patterns
- 17:24Q&A and closing
