DRY (Don't Repeat Yourself) is the battle-cry of the elegant code warrior, fighting against the dreaded Copy-Paste Monster. It's the coding equivalent of "work smarter, not harder" - if you find yourself Ctrl+C'ing and Ctrl+V'ing, you're probably doing it wrong.
I tried to convince the new dev on our team to embrace DRY (Don't Repeat Yourself), but he just kept copying and pasting code snippets from Stack Overflow.
"Dude, that code is so WET, it's practically dripping," sneered the senior architect, "haven't you heard of DRY (Don't Repeat Yourself)?"
Avoiding Repetition - This article by Martin Fowler discusses the various forms of duplication in code and how to eliminate them, embracing the DRY (Don't Repeat Yourself) principle.
DRY Principle: Its Benefit and Cost with Examples - This post dives into the pros and cons of religiously following DRY (Don't Repeat Yourself), with concrete code examples. Sometimes a little duplication isn't the end of the world.
AHA Programming - Kent C. Dodds coins the term "Avoid Hasty Abstractions" or AHA as a counterpoint to DRY (Don't Repeat Yourself). Premature abstraction can be worse than a little duplication.
Note: the Developer Dictionary is in Beta. Please direct feedback to skye@statsig.com.