Three classes decide whether a loan is overdue, and they disagree. Learn to spot a Data Class, move behavior to where the data lives, and know when a plain data carrier is fine.
November 26, 20269 minutes
One line prices a seat through five classes, and a small change breaks six screens. Learn to spot Message Chains, fix them with Hide Delegate or Move Method, and tell them from fluent calls.
November 26, 20268 minutes
An insurance app where every Policy needs a matching Pricer, until someone forgets one. Learn to spot families that grow in lockstep, merge them, and tell them apart from Bridge.
November 26, 20269 minutes
A method that keeps reaching into another class's data wishes it lived somewhere else. Learn to spot Feature Envy and fix it with Move Method: put behavior next to the data it uses.
November 24, 202611 minutes
One small request, edits in five files. Learn to spot Shotgun Surgery, give each piece of knowledge a single owner, and tell it apart from its mirror image, Divergent Change.
November 24, 202610 minutes