Code Indention
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
while(true)
{}
K & R looks like this
while(true){
}
Check this out if you want to read more.
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
Tim Barcz
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.
Chris Sutton
February 20, 2008 at 2:05 pm