News for hackers. Stuff that matters.
Re:I don’t buy “duplication is cheaper than the wrong abstra... by AnimalMuppet on Tuesday August 29, 2023 @09:13AM (#37307360)
In that situation, the correct thing to do is, when the two pieces drift away from each other, to recognize that they are no longer the same abstraction and to break the connection. That may be painful - you have to look at everywhere that abstraction is used and figure out which thing it really is, and change the code to reflect it.

But if that's going to happen, then in the early days, a little duplication was probably better.

Re:I don’t buy “duplication is cheaper than the wrong abstra... by Retric on Tuesday August 29, 2023 @09:39AM (#37307755)
Yea, figuring out what’s going to happen seems hard but mostly comes down to why different bits of code are similar. Often what you want is to abstract a portion of the shared code rather than all of it.