Design Patterns · Middle · Question 31 of 75

What is shotgun surgery?

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.

Further reading

Problem with a question

Design Patterns · Middle · question 31

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz