4 ms·
> prefer duplication over the wrong abstraction Such a strange advice. If you're able to recognize the wrong abstraction right away, surely you would not use
by hota_mazi 6y ago
> prefer duplication over the wrong abstraction
Such a strange advice.
If you're able to recognize the wrong abstraction right away, surely you would not use it, right?
- mrkeen 6y agoThe reason is that you won't know it's the wrong abstraction until it's time to modify it or add new features.
- allenu 6y agoI think the intent was to communicate that abstractions aren't always right. Some people might think that because there's duplicate code and that the abstracted code maps to the duplicated code 1 to 1 and leads to fewer lines in total, it's a good abstraction, not realizing that there are costs to doing this that may not be aware of.