3 ms·
> the code they wrote for the sake of beauty is crap. From my understanding, this is the crux of the article. The problem with this is the misunderstanding of
by jasonlotito 13y ago
> the code they wrote for the sake of beauty is crap.
From my understanding, this is the crux of the article. The problem with this is the misunderstanding of why people employ patterns in programming. It's not for the sake of beauty, but because of sound architectural principles.
Maybe that's how he interprets beauty, but then using the word beauty diminishes why the code was written the way it was written. That beauty is subjective.
The reality is good code and good practices have real measurable value that mere "beauty" does not.
- Sunlis 13y agoIn 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.
- jasonlotito 13y agoMy 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.
- pieterp 13y agoI actually thought the article would be about indention, style, etc.
- jasonlotito 13y agoConsidering his examples, it's not. It's about architectural quality. Indentation style is meaningless in this context.
- pieterp 13y agoI agree, his example makes a case for writing "beautiful" (maintainable?) code from the start.
- jeremyjh 13y agoWell there definitely is a real problem he is speaking to, in which people apply patterns out of reverence rather than understanding. They want to be able to say at their next interview or meetup that they've used all these patterns. Anyone who has worked in Big Corp has seen this first hand: a great shining tower of beautiful code which is 80% bullshit and ceremony.