3 ms·
Every few months there is a comment complaining about DRY, and a counter comment complaining about misunderstanding of DRY. So allow me: DRY originated from Th
by BeetleB 5y ago
Every few months there is a comment complaining about DRY, and a counter comment complaining about misunderstanding of DRY. So allow me:
DRY originated from The Pragmatic Programmer, and is not about avoiding duplicated code. In fact, quite a bit of duplicated code doesn't break the DRY rule as originally defined.
If I make my own list, I'll be sure to put "Understand what DRY is before complaining about it." :-)
- dllthomas 5y agoWe should refer to removal of accidental syntactic repetition because of an overapplication of misunderstood "DRY" as "Huffman coding."