Refactoring a Massive View Controller in Swift
summary
Shows concrete techniques that shrink enormous view controllers (mentions the 5,000‑line horror) into focused parts: extract views and models, use guard to flatten nesting, move configuration into property closures, and replace duplicated setup with small helper objects. Uses Xcode shortcuts, playgrounds and GitHub slides, suggests dependency injection or a simple manager for third‑party interfaces, and warns about over‑abstraction and performance. Continuous, small refactors are claimed to reduce bugs, risk and developer stress and to save time.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:00What is refactoring
- 5:00Continuous refactoring
- 7:27The Basics
- 18:32Separate Files
- 19:44Splitting Responsibility
- 25:21ProtocolOriented Programming
- 27:37Remove Unused Code
- 31:10Xcode Shortcuts








