How to write "Pretty Code"?
I'm looking for books, guides, tutorials to "beautiful code". I'm looking to improve my programming style with better variable name choices, comments, and white space usage. I'd like to learn reasons why certain bracket placement is advantageous to others, or why 2 space indents are better than 4 and so forth. I realize that some of these issues may be language dependent, but there are some general rules to follow.<p>The only book I've come across regarding this is the Kernighan and Plauger's "The Elements of Programming Style". However it's a bit outdated.