Code duplication
Appearance
Code duplication is one of the biggest problems in software engineering. The same few (or several) lines of code are copied to various parts of a large program. Worse, they are copied into countless other programs.
The industry-standard solution is to encapsulate the code into a library routine (which is modifiable) or a software component (which is not). Then, a subroutine call is made to the relevant code.