What Is the DRY Principle?
A calm, thorough guide to DRY (“Don’t Repeat Yourself”): the misplaced-home-address analogy, the formal definition centered on knowledge rather than text, its 1999 origins with Andy Hunt and Dave Thomas in The Pragmatic Programmer, the playful WET opposite, the three kinds of duplication (code, logic, knowledge/data), a building-blocks diagram of three copies vs. one single source of truth, four core benefits, a worked TaxPolicy code example, seven techniques for staying DRY, DRY beyond code (documentation, tests, design systems, infrastructure), the Rule of Three, the over-abstraction trap and the AHA counter-principle, the “wrong abstraction” trap where coincidental similarity backfires, how DRY relates to KISS / SRP / Composition, a six-step spot-and-fix recipe, a comparison table, common pitfalls, real-world analogies (single light switch, master recipe card), an FAQ, and a glossary.