If only I were

Building Great Software

Code Indention

with 2 comments

What code indention style do you use? I’ve always leaned toward the Allman style, but am fine reading code either way.

Allman looks like this



K & R looks like this



Check this out if you want to read more.

Written by Chris Sutton

February 19, 2008 at 9:16 pm

Posted in Technology, Thoughts

Tagged with

2 Responses

Subscribe to comments with RSS.

  1. I think it’s because I gravitate so heavily towards symmetry, but I’m a fan of Allman, sure it takes up more physical lines, however my eye can more easily clue in to what is a block and what isn’t.


    Tim Barcz

    February 19, 2008 at 9:42 pm

  2. Yeah, symmetry is a good way to describe the attraction that Allman’s style has. Also, I learned programming in pascal which uses begin/end keywords to define blocks. That pascal syntax translates well to Allman’s style in c-based languages.

    Chris Sutton

    February 20, 2008 at 2:05 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: