Over at Kotaku, there is an article talking about Doom 3‘s source code and how beautiful it is (there has already been an in-depth article talking about the technical aspects of it). The article is an interesting read since it focuses more on how to format source code than the actual structure of the code itself (not to say they don’t delve a little into what they’ve done technically). John Carmack himself even chimes in on the discussion talking about the style of coding that he’s beginning to focus on, which is a more functional style of programming.
Almost all the books I’ve seen people recommend about how to code never go in-depth on the stylistic aspects of the language such as where you should put parentheses, how many spaces you should have between lines, how you tab lines and methods and the other minutiea of making readable code. I suppose you just take up coding like the example code you see. For me, I try to maintain white spacing and general formatting the same for every language I code in, but then default to accepted naming conventions and such when it comes down to naming variables, methods, classes, etc.
So, my loyal readers (all two of you), what makes code beautiful?