.
Kill you're self.
>>57674172
>Kill you are self
I am the guy who uses the extra brackets lol
Is that bad?
>>57674186
extra brackets?if (condition) {{
foobar();
}}
do_thing((!ptr) ? NULL : ptr);
>people who always whine about muh wasted white space but don't use ternaries
>be not using the most BDFLd language
>be not from harlem
Left
Left because my parents loved me as a child.
>>57674158function (parameters)
{
/* ... */
if (condition) {
statements;
/* ... */
}
/* ... */
}
>>57674158
Retards using stupid indentation in stupid languages and retards using stupid languages?if condition then (
Statements;
Return
);;
>>57674180
>being this new
>>57674260
Well used and readable whitespace is not the same as wasted whitespace, dumbass.
>>57674158
Left is the only proper way.
>>57674246
that's equivalent todo_thing(ptr)
>>57674586
>doesn't recognize double reverse trolling when he sees it
Right would drive me up the goddamn walls.
Learning to program, I tried to section shit off so I could catch myself doing dumb shit easy.
I get why some older programmers do that shit, but for me learning and seeing that shit made me fucking loco
>>57674158
right in javascript because it's just designed to be sloppy like that, i use left sometimes in other languages.
>>57674158
People that do not line up their brackets are either homosexual, or will one day become homosexual.
>>57674158
>increasing the number of lines to your code to make it look important
>>57675036
>doesn't recognize triple reverse trolling when he sees it
>>57675056
The brackets are lined up, to the if.
What if they program in Python?
>>57675047
Funny, seeing Left drives me up the fucking wall. If I contribute to some OSS using left, I will refer it into the right form, modify it, then refer it back to left, because it's so obnoxious coding in the left style.
I actually have shitbrackets and goodbrackets scripts in /usr/bin
>>57675359
Then they aren't an actual programmer, so this doesn't apply.
>>57674158int
main(void)
{
printf("The best one!\n");
return 0;
};
Left for functions, structs, enums
Right for control statements
i fucking murder people who space instead of tab
I use whatever the project or work environment norms are, because I don't assume that everyone should use the same style as me. Collaborating in a way that's easier for others to understand is more important than my own compulsions.
Not really true it depends on the language in which you are programming
>>57675444
https://www.youtube.com/watch?v=5vRlJrkxsqo
>using 0 and 1 in place of booleans
>>57675517
>Not writing idiomatically
>>57675422
oooo
https://www.youtube.com/watch?v=cKCOGq-eFQQ
>>57674186
No. White space helps the eyes and mind quickly focus.
Code which runs shit together is bad.
Left. Always left.
>>57675290
hah nice try, but i won't fall for that forthruple reverse trolling!
>>57675313
The brackets are lined up to each other. If you are going to nest multiple if statements, lining up the brackets looks so much better.if (age <= 0 || weight <= 0)
{
System.out.println("Please retry and ensure both values are whole numbers.");
}
else
{
if (age <= 10)
{
if(weight < 80)
{
System.out.println("You must ride the " + rc[0]);
}
else if(weight >= 80 && weight <=200 )
{
System.out.println("You must ride the " + rc[1]);
}
else if(weight > 200)
{
System.out.println("You must ride the " + rc[2]);
}
}
else if (age <= 20)
{
if(weight < 80 )
{
System.out.println("You must ride the " + rc[3]);
}
else if(weight >= 80 && weight <=200 )
{
System.out.println("You must ride the " + rc[4]);
}
else if(weight > 200)
{
System.out.println("You must ride the " + rc[5]);
}
}
else
{
System.out.println("You must ride the " + rc[6]);
}
}
>>57674158
>even needing conditional brackets
>>57681525
if you have more than 2 nested ifs, you did something wrong.
>>57674520
I suppose your father loved you particularly more than your mother, am I right?
>programmers will know
That excludes OP and 95% of /g/
back to your useless bash scripts and anime pillows
>mfw I prefer left but golang forces you to do right
>>57674180
>>57681780
>interested in Go
>forces shitty bracket style
Into the trash it goes
What a retarded design choice
>>57674225
gross
>>57681661
Not an argument.
>>57674158
The first is objectively better for readability. If you are complaining about wasting whitespace then don't use any and we will see how far that gets you.