News for hackers. Stuff that matters.
Re:The Wrong Abstraction (2016) by hota_mazi on Sunday July 05, 2020 @01:02PM (#23740120)
> 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?

Re:The Wrong Abstraction (2016) by allenu on Sunday July 05, 2020 @02:18PM (#23740683)
I 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.

Re:The Wrong Abstraction (2016) by mrkeen on Sunday July 05, 2020 @02:08PM (#23740599)
The reason is that you won't know it's the wrong abstraction until it's time to modify it or add new features.