• Create Account

#ActualKhatharr

Posted 16 April 2013 - 03:55 PM

Personally I prefer the second style because it's the style I was trained with and I always feel 'jarred' when I see a whole line used up by an open brace. It just makes me want to scream 'Mottainaiiiiiiiiiiiiiiiiiiiii!'

That said, when alone you do what you want. When you work with others do what they do.

Actually, though. I do have one 'odd' habit that would probably get me smacked by some people.

if(condition) {
//dostuff on more
//than one line
}

vs

if(condition) {/*dostuff in one line*/}


I never use 'braceless' blocks. To me it's just begging for trouble. On the other hand, I'll use that second style there so long as it doesn't make the longer than about 60 characters.

Oh, that's another thing. I'll break up compound statements to try to keep every line shorter than a certain length so that I don't have to mess with horizontal scrolling.

#1Khatharr

Posted 16 April 2013 - 03:51 PM

Personally I prefer the second style because it's the style I was trained with and I always feel 'jarred' when I see a whole line used up by an open brace. It just makes me want to scream 'Mottainaiiiiiiiiiiiiiiiiiiiii!'

That said, when alone you do what you want. When you work with others do what they do.

PARTNERS