>>11901>Nobody needs another "everything is subjective :P" argument. I can write objectively bad code.But that's what you get when you start talking about taste and beauty when we don't even define what's beautiful and what's ugly code.
As said earlier, we can objectively measure the efficiency of a given program but apparently that doesn't make it "beautiful"; a program could be fast but hard to extend, modify or even understand.
To me, I prefer to think somewhat as
>>11828. In my opinion, good code:
1. Is written in such a manner that can easily communicate intent without relying too much on comments.
2. Is designed to easily allow for potential changes using appropriate abstractions; too little and you get a rigid program, too much and you get enterprise fizzbuzz.
3. Makes use of the features of the language/framework in which is written.
4. Last, and not least, it takes into account the capabilities of the executing environment and adapts accordingly.
...I think I'm just parroting CC2 at this point, maybe I'll read it again someday.