---
title: "Shotgun Surgery"
type: "code-smell"
slug: "shotgun-surgery"
url: "http://localhost:3000/en/smells/shotgun-surgery.md"
category: "Change Preventers"
description: "Making any modifications requires that you make many small changes to many different classes."
---
# Shotgun Surgery

> Making any modifications requires that you make many small changes to many different classes.

## Signs and Symptoms

Making any modifications requires that you make many small changes to many different classes.

## Reasons for the Problem

A single responsibility has been split up among a large number of classes. This can happen after overzealous application of [Divergent Change](/smells/divergent-change).

## Payoff

* Better organization.
* Less code duplication.
* Easier maintenance.
## Relations

**Treated by**

- [Move Method](/en/move-method.md)
- [Move Field](/en/move-field.md)
- [Inline Class](/en/inline-class.md)

