Knowledge
Search knowledge... ⌘K
Knowledge · Anti-Patterns
Smell Shotgun Surgery
Anti-pattern indicating need for refactoring
Tags
refactoring-fowlercode-smellmaintainability
Impact
Every time you make a kind of change, you have to make a lot of little changes to a lot of different classes. When changes are all over the place, they are hard to find, and it's easy to miss an important change.
Symptoms
- One change requires modifications to many different classes
- Related code is scattered across the codebase
- Changes are hard to find and easy to miss
Source
Martin Fowler — Refactoring: Improving the Design of Existing Code, 1st Edition (1999)