When you have the same code in more than one place, perhaps with small variations. Every time you want to make a change in the duplicated section of code, you will need to find all the copies and decide whether to update them too. This can lead to shotgun surgery.
- This smell is included Martin Fowler's book "Refactoring", 2nd Edition
- This smell is included among wikipedia's code smells
Back to All Code Smells