News for hackers. Stuff that matters.
Re:Code Lifespan by jayd16 on Friday January 27, 2023 @05:58PM (#34552979)
The problem with the "generalized" approach is you often only have one data point to generalize across. If you try to focus on solving problems you don't yet have then you end up writing a lot of useless cruft.

If you write clean code that is easy to groc and easy to replace, then its also easy to extend once you know where you want to extend to.

Re:Code Lifespan by spc476 on Friday January 27, 2023 @08:39PM (#34554193)
Code that is easy to modify slowly becomes code that isn't easy to modify.