Hacker News new | ask | show | jobs
by Sunlis 4756 days ago
In my experience, "good" code and "pretty" code are the same thing - and similarly for "bad" and "ugly". Of course, when I say "pretty", I mean well laid-out, properly documented, non-spaghetti code. I've spent far too much of my time tearing out thousands of lines of "bad" code that wasn't written in a way to allow for easy changes.
1 comments

My issue is the phrase "sake of beauty." This ignores why this code was written. I'm fine with beautiful code. My issue is the use of the word beautiful in such a way as to imply that beauty was the intent. People don't try to write beautiful code, people try to write good code. That it happens to be "beautiful" is a bonus.

Hopefully my point is clear. I guess it's subtle, but I think a crucial difference.

I actually thought the article would be about indention, style, etc.
Considering his examples, it's not. It's about architectural quality.

Indentation style is meaningless in this context.