4 ms·
> I also feel that people conflate duplicating code with duplicating behaviour, which is what DRY is really about. Indeed. The definition of the DRY principle
by glitchdout 12y ago
> I also feel that people conflate duplicating code with duplicating behaviour, which is what DRY is really about.
Indeed. The definition of the DRY principle [1] is:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
and not:
Don't type the same characters into the keyboard multiple times.
People often forget that.
[1]: http://c2.com/cgi/wiki?DontRepeatYourself http://c2.com/cgi/wiki?DontRepeatYourself