How to write "Pretty Code"?

1 points by iloveprettycode ↗ HN
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.

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.

3 comments

[ 3.3 ms ] story [ 15.7 ms ] thread