News for hackers. Stuff that matters.
Re:Good code is rarely read by bayindirh on Saturday June 15, 2024 @10:49AM (#40690155)
Have you ever had the need to read the source code of a tool because it doesn't behave the way it should, and its help and documentation prescribes?

I have been there a couple of times, and how some stuff is handled in these codebases were sad. Sloppy, assumption ridden, or pure, inelegant and fragile hacks.

Even if you're reading a code to modify it, good code is easier to follow and read (point of the junior developer), and as a result, you touch less and less parts of the code to develop it even further.

So yes, Good code is rarely read, or "read less, and in more niche cases".

Re:Good code is rarely read by gravypod on Saturday June 15, 2024 @10:59AM (#40690214)
> Have you ever had the need to read the source code of a tool because it doesn't behave the way it should, and its help and documentation prescribes?

I believe this varies wildly programmer to programmer. I'm often diving into code and reading that when debugging. I've done this with many code bases. It may be debatable if any of them are "good".

Re:Good code is rarely read by bayindirh on Saturday June 15, 2024 @01:30PM (#40691180)
People's quality bar differs in height, that's true, but I want to raise one example: https://rclone.org/install.sh

Which is readable, understandable and exceptionally good at what it does for 200 line bash script.

So, there's good code out there.