Don't repeat yourself
Don't repeat yourself ( DRY , English for “ don't repeat yourself ”; also known as once and only once “once and only once”) is a principle that says to avoid or at least reduce redundancy . It is also a principle of clean code .
One area of application for the DRY principle is, for example, programming .
Information that is redundant (for example, code duplicates in the source text ) can only be maintained uniformly with great effort. With systems that stay true to the DRY principle, changes only need to be made in one place.
While the DRY principle aims to avoid redundancy, the SPOT principle aims to deal with (intentional) redundancy.
- Normalization (database)
- KISS principle - a similar principle to software development
- Convention before configuration - a paradigm based on the DRY principle
- The Pragmatic Programmer. Page 26, "The Evils of Duplication," ISBN 978-0-201-61622-4
- The pragmatic programmer. Page 24, “The evil of repetitions”, Hanser Verlag , ISBN 3-446-22309-6
- Karl Eilebrecht, Gernot Starke: Patterns compact: Design patterns for effective software development. Springer-Verlag , p. 5 online
- Hansruedi Tremp, Markus Ruggiero: Application Engineering. P. 140 Online
- Gernot Starke: Effective Software Architectures: A Practical Guide. Hanser Verlag , p. 117 online
- Neal Ford: Programming productively. O'Reilly Verlag , p. 6 online