From Problem to Solution
summary
A concrete technique: replace a monstrous network class with a composable Transport protocol that has one send method, then build wrappers for checking status codes, header injection, authentication, background tasks, counters and timing. The talk shows test helpers like a mock transport and an inspector, a generic decode extension for promises, and measures the problem (96 possible test paths) to argue the new stack is shorter, decoupled, testable and reusable.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:32Class
- 4:01Adding features
- 5:32Responsibilities
- 5:51Cyclomatic Complexity
- 6:31Code Length
- 6:50Deduplication
- 7:19Extraction
- 11:35Rob Napier
- 18:18Dont repeat yourself
- 20:24Test stuff
- 24:14Extract
- 25:46Time and Transport
- 27:05Decoupling








