What Kind Of Programmer Are You?

What Kind Of Programmer Are You?

Other urls found in this thread:

painlessprogramming.blogspot.hr/
twitter.com/AnonBabble

Whenever I see right, I know they're a virgin.

1st

i never indent.

Everything in one line.

if (condition)
foo();
else
bar();

if()
foo();
else
bar();

1st. All my professors are 2nd, though... Why is that?

I never use newlines.

Are your professors by any chance Indian?

I use the left one, but with spaces between the functions, like a proper human being.

poo();

I use both randomly

t. madman

loo(poo);

extremely patrician man

Brazilian. They're all decrepit old man.

the first is understandable in an autistic way, but the second is objectively superior because it's honestly just insane to use that many lines purely for solitary braces

if you have a problem with this, that's fine, but you'll have to accept that no rational human bean will ever agree with you

Poo.init();

kys

>when he doesn't exclusively use ruby
r0tf

>it's honestly just insane to use that many lines purely for solitary braces
so why is the second superior?

I mostly use the left style, but when I need to print my code I use the right style.

why would need to print your code?

foo() if condition else bar()

I follow the fucking best practices of the language like any other non-NEET

condition ? foo : bar

while (!loo) { poo(); };

if (condition)
foo();
else
bar();


if(condition) {
foo();
anotherFoo();
} else {
bar();
anotherBar();
}

Shit I meant the reverse.

I mostly print my code in order to find bugs while on the train.

>if (condition)
foo();
Fucking lawlessness. Might as well program in Python. Always curly braces, we have rules as a society for a reason. We are in the end times.

A -real- programmer.

The kind that just runs an indenter tool like indent or astyle.

condition ? foo() : bar();

took you long enough.

ternary master race reporting in.

ternary is lazy hieroglyphic bullshit

condition
? foo()
: bar()

>hieroglyphic
that's why you use it on select cases, faggot.

What's with your currynigger blog title caps?

lol ok tutankhamun

left

goto fail;
goto fail;

A shitty one.

That's why you always auto-format the code, they were stupid

How do you faggots read the left one? The right looks so much more comfy.

>using goto
Who's the real failure here?

The right one.

if (condition) {

foo();

} else {

bar();

}

>pretending that goto doesn't exist by coating it in syntactic sugar

if (((condition)))
fail();
fail();

foo if condition
bar unless condition

>falling for the goto is shit meme

Just throw an exception amiright

best place to learn programming:
painlessprogramming.blogspot.hr/

type
func()
{
if (condition) {
foo();
} else {
bar();
}

return(val);
}

>exception
>not doing this:
okay: do {
fail: do {
/* code */
if (err_cond) {
break fail;
}
break okay;
} while (false);
/* Error handler here */
} while (false);
/* Other code */

Left the virgin if statement.

Right the chad if statement.

Only right way.

if (condition) {
foo() ;}
else {
bar() ;
}

Here's the superior way
if(condition)
{foo();}
else
{bar();}

>{foo();}
looks like sideways Carmen Miranda winking

if(condition) {foo();}
else {bar();}

superfluous call to a second fail()

It's clear that fail() returns >>You

my 50+ year old teacher told me he did that "back in the day"

I use the second cause I find it easier to read at a glance

Right because GNU style is best style.

die

left because the right side is being hit by cars in charlottesville

DELET THIS

Except it's not GNU, it's Allman

if (condition) then foo()
else
begin
bar()
end;

if (condition) foo();

It's clear that you didn't get the reference in

the kind that calls you a fucking faggot on a shitty image board

This.

if (condition) {
foo() ;}
else {
bar() ;
}

Apple obviously

(condition ? foo : bar)();

best place to learn programming:
painlessprogramming.blogspot.hr/

This is the worst way to learn programming and croatia is the worst country they are filled with nothing but traitors and Albanians.

go fmt

stop spamming your link everywhere faggot

>} else {
this line is fucking embarrassing. left side is shit. Allman style > *

if (condition)
{
foo();
} else
{
bar();
}

>implying stallman doesn't get all the pussy

Refactor to use polymorphism.

if (condition) {foo();} else {bar();}

You should use a flashlight and a can of pesticide for that, Milton.

Trips of troofs

antifaggot = soros = neoliberal = center-right.

void
main(void)
{
if (condition) {
foo()
} else {
bar()
}
}

I prefer
if condition then
foo ()
else
bar ()

Ocaml master race.

Forgot the ;

140 if condition=1 then gosub 1500 else gosub 2000

Are you out of your god damned mind?

Seeing code with the right form makes me wanna gouge my eyes, holy shit, it's tiresome reading 10k+ lines of code all in that format even worse when they start nesting shit, fuck anyone who uses this shit.

Thank god for auto-format becoming more and more popular and efficient, i can just click a button to clean all this bullshit.

if (condition)
{
if (condition)
{
if (condition)
{
if (condition)
{
foo ();
}
}
else
{
if (condition)
{
foo1 ();
}
}
}
else
{
foo2 ();
}
}
else
{
bar ();
}


This shit makes my blood boil, holy shit.

if (condition) {
foo();
}
else {
bar();
}

I mostly stick to official doc of the language so everyone who review my code can't bitch at me for writing unorthodox shit.
If it's not my own project, I follow the rules already set.
There is no reason to throw at everyone faces my preferences, being readable is more important than feeling different or whatever.

i usually just do this and get paid for having a vagina.

if (a < b && b > a):

this is what I do desu, pls no bully

The Stroustrup method produces clean code. Ironically, the opposite of his language.

wow, never realized butthurt nanofags made those comics

left, always.

i like it
Is it possible to do that in haskell?

if blah
foo()
else
bar()

>curly braces
>2017
reallynow.jpg

I love this syntax but It makes me sad that my company doesn't use it.

if (condition)
{ foo(); } //one line
else
{
//multi-line
bar1();
bar2();
}


My general rule of thumb is that curly braces should always be on the same line or in the same column.

right one