Experience Loose Coupling
summary
Demonstrates making a large iOS Swift codebase testable by extracting interface modules and using simple dependency injection instead of splitting implementations. Describes using Swift static targets, protocols and a small DI container to resolve cyclic dependencies so tangent builds only compile the cosine interface and sine module, avoiding a 30-minute clean build; compares trade-offs of a two-month full-refactor versus a one-week interface extraction that yields a small demo app and fast unit tests.
AI-written summary · about
chapters (7)
- 0:00Loose coupling intro
- 1:56Tight coupling problems
- 6:31Tight coupling simulation
- 9:27Interface module solution
- 15:04Circular dependency issue
- 17:51Solving circular dependency
- 22:30Summary & Q&A
related talks
56mBalancing Coupling in Software Design
56mLaw of Demeter: A Practical Guide to Loose Coupling
46mHiding The Lead
03mIncreasing Player Coupling in an Asymmetric Racing Game
53mArchitectural Simplicity through Events
31mLoose Coupling in the Frontend with 'Hotwire: HTML over the wire' or Death to Single-Page Applications
29mDecoupling in Practice - How Good Software Engineering Can Save...
58mGetting a grip on your code dependencies
