Glossary: Refactoring and Clean Code
DRY (Don't Repeat Yourself)
Also written: DRY, Don't repeat yourself
The principle that each piece of knowledge, such as a price or a rule, should live in exactly one place. It's about knowledge, not about lines that merely look alike; for example, three copies of a money-line layout become one `money_line` function.