Design Patterns · Middle · Question 31 of 75
What is shotgun surgery?
- ✓Correct answer: One change requires edits in many different places in the code
- 2Running many tests in parallel to speed up CI
- 3Deploying several services at the same time
Explanation
For example, adding a new order status requires edits in 12 files. It's a sign that one piece of knowledge is smeared across the code (a violation of DRY and cohesion). The cure is gathering the related logic into one module.