Extract-Class

Divergent Change

One Invoice class, three teams, three merge conflicts in one sprint. Learn to spot a class with many reasons to change, split it with Extract Class, and know when to leave it.

November 26, 20268 minutes

Duplicate Code

A discount rule copied into three classes, a bug fix that reaches two. Learn to spot duplicate code, pick the right refactoring, and tell real duplication from look-alikes.

November 26, 20269 minutes

Temporary Field

A route planner whose fields are only filled while one method runs crashes when another method reads them early. Learn to spot a Temporary Field, give the job its own class, and know when a lazy cache is fine.

November 26, 20269 minutes

Data Clumps

Two dates passed separately, nine times, until one call swaps them and two families book the same cottage. Learn to spot data clumps and give them a name.

November 25, 20269 minutes

Large Class

Every code base has one class that every change goes through. Learn to spot a Large Class, split it along its seams with Extract Class, and give each class one reason to change.

November 24, 202610 minutes