News for hackers. Stuff that matters.
Re:Good code is rarely read by x0x0 on Saturday June 15, 2024 @04:49PM (#40692602)
> Adding features to a code means it was incomplete.

That definitely implies code can't be good if needs change, which makes no sense to me.

Re:Good code is rarely read by tanseydavid on Saturday June 15, 2024 @07:14PM (#40693398)
Missing feature implies an error at the Requirements level.

This does not impact readability or the idea of "good code" in my opinion.

You could have an application that is missing features which still contains examples of "good code". Learning about "good code" by reading the source code of this application won't really give any direct hints of missing features...the granularity is different.

Re:Good code is rarely read by philosopher1234 on Saturday June 15, 2024 @10:04PM (#40694162)
Why does it imply an error? The world changes, is that an error? You built around one reality, and reality changed. No one can predict the future.
Re:Good code is rarely read by mewpmewp2 on Sunday June 16, 2024 @01:05PM (#40698516)
What about changing features? E.g. a feature has to change 2 years down the line because certain laws are passed and this changes how the business logic should behave.
Re:Good code is rarely read by jacoblambda on Saturday June 15, 2024 @04:54PM (#40692620)
Adding features means it was incomplete. Good code can essentially always be built upon instead of modified.
Re:Good code is rarely read by oblio on Saturday June 15, 2024 @05:10PM (#40692723)
Laws change, business requirements change, network protocols/external APIs change, ...

Your approach is I guess valid for self contained algorithmic code, i.e. 0.000001% of code out there.

Re:Good code is rarely read by x0x0 on Saturday June 15, 2024 @05:06PM (#40692696)
But code can be complete and then become so-called incomplete because, again, needs change.

eg someone releases a new file format. You believe ffmpeg is bad code?

Re:Good code is rarely read by mewpmewp2 on Sunday June 16, 2024 @01:07PM (#40698529)
In that case you could argue that you would be just writing new code to write a handle for that file format.

In ffmpeg case I assume this is how it would be.

Re:Good code is rarely read by exe34 on Saturday June 15, 2024 @04:59PM (#40692648)
is "building upon" different from "adding features", in this new terminology?