Stating the obvious
summary
Claim: making most entities conform to small protocols yields big wins — using Hashable and Identifiable unlocks standard-library features and mixin-style behavior. Tools shown: Swift protocols, protocol extensions, key-path grouping and collection extensions. Concrete builds: Book conforming to Identifiable and an extension that groups books by id or author; a collection extension to sort by distance for a Locatable protocol. All examples compile conceptually and demonstrate real, reusable utilities.
AI-written summary · about
chapters (4)
related talks
35mProtocols with Associated Types
20mHow Not to Write Swift
27mGeneric Protocols and Associated Types - Power Tools for Unit Testing
46mGeneric Swift: It Isn't Supposed to Hurt
17mFinally Solving the Expression Problem
12mRepresentables in Swift
32mYou Deserve Nice Things
48mLearning From Our Elders: Applying functional insights without losing Swift
