4 ms·
The answer, as always, is "sometimes". Sometimes duplication is cheaper than the wrong abstraction. And Sometimes it's better to abstract away a duplication
by bena 3y ago
The answer, as always, is "sometimes".
Sometimes duplication is cheaper than the wrong abstraction.
And
Sometimes it's better to abstract away a duplication rather than let it lie.
And that's the mark of becoming a master at the craft. Being able to recognize all of these various slight permutations of state and what to do about them.
- rightbyte 3y agoRule of thumbs really need to be told like this. Or they will be missused. Either by newbies that doesn't know any better or unpleasant programmers that will show their dogmatic beliefs down your throat with the common wisdom as excuse.