Shotgun surgery
Meaning in software engineering, with examples
In software engineering, shotgun surgery means: A code smell where one conceptual change requires many small edits across different parts of a codebase.
In Turkish: dağınık değişiklik kokusu
How it is used
An informal metaphor used in refactoring discussions. It describes scattered responsibilities, not a surgical procedure.
Example sentences
Changing one invoice rule caused shotgun surgery across twelve unrelated classes.
The same business decision is spread across too many places.
We centralized currency formatting to reduce shotgun surgery during future locale updates.
Bringing related responsibility together reduces how many files one policy change touches.
Common collocations
- avoid shotgun surgery
- shotgun surgery code smell
Related terms
More terms: Code Review and Code Quality
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
