When should you eliminate code duplication?
- Tag:
- code duplication
TL;DR
- Removing duplicate code is not always the best solution.
- After removing duplicate code, making changes to the code can sometimes be more costly than if the duplicate code had been left.
- Depending on various situations, including business requirements, it may sometimes be necessary to leave duplicate code.