3 ms·
Isn't that really the fault of an overloaded (as in doing too much) function API rather than a DRY related problem?
by __david__ 14y ago
Isn't that really the fault of an overloaded (as in doing too much) function API rather than a DRY related problem?
- ajross 14y agoWell, yes, but my point was that I see them as part of the same thing. A function (or whatever) that does lots of related things can be "DRY" if it avoids writing out all the related things longhand, or it can be "too much" if it introduces bugs. DRY as a general philosophy to avoid cut-and-paste code is fine. But it's also an ethic that in my experience prioritizes concision at the expense of clarity. Loss of clarity is a factor in half the security bugs on the internet.