August 2018
Intermediate to advanced
332 pages
9h 12m
English
The ideas of Don't Repeat Yourself (DRY) and Once and Only Once (OAOO) are closely related, so they were included together here. They are self-explanatory, you should avoid duplication at all costs.
Things in the code, knowledge, have to be defined only once and in a single place. When you have to make a change in the code, there should be only one rightful location to modify. Failure to do so is a sign of a poorly designed system.
Code duplication is a problem that directly impacts maintainability. It is very undesirable to have code duplication because of its many negative consequences: