in reply to Monk ethics: Beauty vs. Power
For code that others may see, beautiful code is something that is easy to read to me. As a goal I prefer self documenting code, but if there is a trick then comments are necassary.
If it's something I banged out in an afternoon and may never use again; Whatever works. If something new was discovered or it's a neat bit of code; I tend to save those off to the side for incorporation elsewhere. They get cleaned up before hand.
Short description: If I can read it, it's beauty. If I look at my code later and go "What the hell!?", that's ugly
And obsuscation is beauty of a different type.
|
|---|