Knowledge
Search knowledge... ⌘K
Knowledge · Anti-Patterns
Smell Lazy Class
Anti-pattern indicating need for refactoring
Tags
refactoring-fowlercode-smellmaintainability
Impact
A class that isn't doing enough to pay for itself should be eliminated. Often this is a class that used to pay its way but has been downsized with refactoring, or a class added for planned changes that were never made.
Symptoms
- Class has very little behavior
- Class was reduced by previous refactoring
- Class was added for anticipated changes that didn't happen
Source
Martin Fowler — Refactoring: Improving the Design of Existing Code, 1st Edition (1999)