News for hackers. Stuff that matters.
Re:Ask HN: Where do I find good code to read? by happytoexplain on Thursday August 24, 2023 @09:18AM (#37248401)
Taken at face value, this advice is probably just as bad as the opposite ("write perfect extensible modular code with 100% documentation and test coverage"). There is a lot of room in between where the enlightened developer can find happiness.
Re:Ask HN: Where do I find good code to read? by Zetice on Thursday August 24, 2023 @09:21AM (#37248440)
You misunderstand; nothing about what I suggest says you shouldn’t write, “perfect extensible modular code with dull documentation and tests.”

If that’s what you need to do to solve the problem, do that. The point is to stop focusing on the code as the work product, and instead focus on the solution as the work product, of which code is one part.

Re:Ask HN: Where do I find good code to read? by weatherlight on Thursday August 24, 2023 @12:05PM (#37250528)
These are the same thing.

Good code should always solve the solution, to be considered good code. Bad code might solve the solution, it might not.