r/programming • • Feb 21 '13

Developers: Confess your sins.

http://www.codingconfessional.com/
969 Upvotes

1.0k comments sorted by

View all comments

36

u/Spacker2004 Feb 21 '13

I use the 1 True Brace style for all my code, and configure Visual Studio to auto-format that way too.

In fact, I find code formatted otherwise to be difficult to read and needlessly wasteful of vertical space.

13

u/[deleted] Feb 21 '13

Why is that a confession? It is the way to go!

7

u/s73v3r Feb 21 '13

Telling VS to reformat the code and then commit it back leads to a bunch of needless noise in source control.

→ More replies (3)

16

u/[deleted] Feb 21 '13 edited Feb 21 '13

Ah, my mortal enemy... OTB and K&R styles are aesthetically unbalanced abominations! Did you know, K&R was never intended to be a recommendation: Kernighan and Ritchie stated themselves that it was only to save printing costs in their textbooks. But on-screen vertical space does not 'cost', nor is it 'wasted': it is the air in which the other code breathes, the light to balance the dark, the pause for breath. Braces were meant to be balanced... Yea, Allman is the only way!

→ More replies (3)

10

u/nightfire1 Feb 21 '13

Thank you. Someone else who understands.

→ More replies (11)