(no title)
gcassie | 3 years ago
But why call it "Don't Repeat Yourself" if it actually means something somewhat more subtle than that. I firmly believe many junior developers don't grasp the nuance and based on the comments I'm not the only one who thinks this. So if DRY is widely understood by developers to mean literally "don't repeat yourself" and nothing more, does it really matter how the formal definition phrases it?
In any event, if SPOT / SST and DRY do mean the exact same thing, I like SPOT / SST better because the names encode the essential concepts of the principle.
naniwaduni|3 years ago
galaxyLogic|3 years ago
Rules are like alarms they draw our attention to some peculiar condition which gives us pause to think about if it's kosher and if not why not.
cogman10|3 years ago
Someone says "never do this" or "always do that" and you can apply those rules with abandon (often leaving a maintenance nightmare in your wake).
There are no rules to programming.
SpicyLemonZest|3 years ago
wvenable|3 years ago
Any principle like this that is applied to code is wrong.