The Inheritance Curse
summary
Claims that Objective C inheritance via NSObject enforces coupling and Swift offers ways to cut it by marking classes final keyword and preferring value types or composition. Warns that using UIKit forces subclassing for views and controllers so sometimes inheritance is unavoidable. Concrete tools include the final modifier, structs, protocols and composition. Outcome is that these tactics stop propagation of deep subclass chains and reduce runtime coupling and surprising global behaviors.
AI-written summary · about
chapters (4)
related talks
20mHow Not to Write Swift
41mThe Kotlin Swift boundary
18mSilver Bullets in Swift
58mSwift: safety, ergonomics, productivity and legacy preservation
04mSupporting Objective-C in a Swift codebase
41mAchieving Loose Coupling with Pure Dependency Injection
05mPreparing for Swift 5 Ownership
48mLearning From Our Elders: Applying functional insights without losing Swift
