News for hackers. Stuff that matters.
Re:Code Lifespan by HankB99 on Friday January 27, 2023 @11:26PM (#34555122)
My general strategy - usually applied on a much smaller scale - was the first time I needed to do something similar (or the same) I'd copy the code. The second time, I'd consider abstracting it. By that time I had three applications and could better identify what was common and what was specific to a particular usage. I wonder if something like that can be applied to larger libraries.
Re:Code Lifespan by personalidea on Saturday January 28, 2023 @04:35AM (#34556392)
That is what I tend to do as well. Heard it being called AHA programming. Avoid hasty abstractions.