.
left is the only sane choice
>>61148322
I do the middle
Is that bad?
Instead of discussing meaningless stuff, why not spend your time writing actual code?
first two are acceptable. if you do the third one you can fuck off, pajeet.
>>61148344
Literally the opposite, middle is pajeet java standard, left is godawful.
>>61148322
if (condition) { foo(); }
else { bar(); }
Lac of eye cancer.
I use 3, but only if the line number of the if is a prime number. I use 2 otherwise.
left is superior, right is ok, but middle one is fucking disgusting
>>61148322
Right makes you sound more productive than you actually are.
Left for client side code typescript/javascript and server side java
Right for server side c# code
The non pleb choice
middle is kys tier
using just one type is neet tier
>>61148373
"Over 5000 lines of code!"
>>61148355
You don't need the {}'s
if (condition) foo();
else bar();
>>61148412
Why do we even let people like this have opinions?
>>61148322if (condition)
foo();
else
bar();
>>61148322
Right
I know it's bad, but as a beginner I find it easier to read
>>61148425
I work in a 20+ year old C code base and that style is goddamn everywhere. I like the elegant code golfyness of it, but still, takes a while to get used to it. Either way, beats the insane FORTRAN 77 syntax I see thrown around in our other code...my lord
The left one only
>>61148355
This can also be acceptable
Middle is best. Left acceptable. Right is for literal children. Not even kidding, that is how they teach children now, because it "looks more symmetric"
>>61148322
Just use python. No curly bracket bullshit
right is the only correct answer. all others are pajeet tier.
>>61148322
Middle. Everyone at work does right though.
>>61148425
this is the correct answer
I wish every language had a gofmt tool, just so everyone would stfu about this and get back to actually programming.
>>61148322
1st one my nigger
>>61148322
Depends on code standards. Current company uses right, and honestly don't really have much of a problem with it, sure takes up more space but makes the code less jarring to go through.
>>61148322
Middle, mainly because it's the standard used by my company.
Depends on how the initial code structure was.
Gotta keep it consistent.
The longer you program the further left you go
>>61149297
the extra space makes code more jarring
>>61149585
qft, started right now at left.
>>61149700
Yeah, if you're fucking retarded. Go chug cock somewhere else.
>>61148353
Name one single standard that uses anything besides left
>>61149700
>clarity is "jarring"
>>61149898
It's like. putting periods in the. middle of sentences.
>>61149856
Google's C and C++ standard? fucking tardo lol. The only language that even uses left is java, literal pajeet language.
} else {
ewww! You don't put anything on the closing line except maybe commet on what it closes if it's big block like} // switch
} // function
Middle one is the only one that should be used.
>>61149928
>elseif
>comment
>>61148343
Get out with you and your logic, next your gonna say tabs or spaces don't matter use what you prefer
>>61149911
Go does too :^)
>>61148322(condition) ? foo() : bar();