✍️ Essay
✓ Link checked
Free
Intermediate
Why we picked it Often the urge to rebuild comes from one abstraction that no longer fits, not from the whole codebase. Metz explains why a wrong abstraction is worse than duplicated code, and how the fix is usually to inline it back and re-split, not to burn everything down. It teaches you to make a surgical cut instead of a total rewrite.
The Wrong Abstraction
From sandimetz.com by Sandi Metz 8 min read
- Duplication is often cheaper than the wrong abstraction
- Sunk-cost feelings make a bad abstraction hard to abandon
- The fix can be local surgery, not a full rebuild