[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 49
Thread images: 5

File: two-types-of-people.png (70KB, 424x293px) Image search: [Google]
two-types-of-people.png
70KB, 424x293px
.
>>
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.
>>
>>57674158
function (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 to
do_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.
>>
File: KqhYapx[1].jpg (24KB, 320x320px) Image search: [Google]
KqhYapx[1].jpg
24KB, 320x320px
>>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.
>>
>>57674158
int
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
>>
File: 1a1[3].png (545KB, 605x453px) Image search: [Google]
1a1[3].png
545KB, 605x453px
>mfw I prefer left but golang forces you to do right
>>
File: 1478983995799.gif (462KB, 320x180px) Image search: [Google]
1478983995799.gif
462KB, 320x180px
>>57674180
>>
File: 1469195716308.jpg (3MB, 3456x2304px) Image search: [Google]
1469195716308.jpg
3MB, 3456x2304px
>>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.
Thread posts: 49
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.