Hacker News new | ask | show | jobs
by yen223 955 days ago
One of the biggest problems when discussing code quality is that there are almost no objective standards. What looks like "good well-named" variables to one person is "overcomplicated garbage" to another, and there's nothing to inform us on which person is correct.

The closest thing we have is "does this code do what the user wants it to do". To me, this is the only question that really matters.

2 comments

It’s true that it’s fairly subjective but that doesn’t mean we should abandon all judgment. Food is subjective as well but still you will get most (not all!) people agreeing that Nobu is better than McDonald’s.
My standard personally is "can I understand by just scrolling the code without working on it?" And here it's clearly not it.

There's a lot of factory code stuff which don't convey any information and very long chains of folders which does not help comprehension