4 ms·
> to ask whether a future change in the logic to one would imply that a change should also made to the other. If there's a really obvious answer to that questi
by cactus2093 5y ago
> to ask whether a future change in the logic to one would imply that a change should also made to the other.
If there's a really obvious answer to that question, then great. But often the answer is "sometimes" or even "most of the time". We train most developers beginning even in intro-level programming classes to err on the side of deduplication and over-abstracting in these cases, but the longer I've been working as a developer the more I have come to think it's better to err on the side of allowing some duplication except in the most clear cut of cases.