Building Great Software
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 Computer Science
Subscribe to comments with RSS.
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.
February 19, 2008 at 9:42 pm
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.
February 20, 2008 at 2:05 pm
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.
search site archives
Blog at WordPress.com.