Duplicated Code

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.


Back to All Code Smells