If you use the 2nd, you're probably a dumb Pajeet webdev

If you use the 2nd, you're probably a dumb Pajeet webdev.

Attached: 1419540235467.png (456x324, 60K)

Other urls found in this thread:

gnu.org/prep/standards/html_node/Formatting.html#Formatting
kernel.org/doc/html/v4.10/process/coding-style.html
man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/style.9
nginx.com/resources/wiki/start/topics/examples/full/
twitter.com/NSFWRedditGif

literally nobody uses the fucking one lmao

How is the second the pajeet one? The first is literally only used on Microsoft stuff, and pajeets love that.

class ClassName
{
...
}
function Function()
{
...
}
if(...){
...
}

I used to do 2 I now do 1 because I like it more

Not even K&R style puts a line break on an if block baka desu senpai

>inconsistent style
You'd be fired where I work.

Reddit also despises the first one.

the one on the right is how Linus from Linuxtechtips wants you to write it if you're working for the colonel.

t.cuck

Attached: 2566131-21.jpg (600x545, 29K)

K&R style best style

doesn't he use brace on a newline for functions though

>K&R is `dumb Pajeet webdev`
lmao ok Jow Forums

Number 1, always. It makes the most sense and is also the most aesthetically pleasing

yeah. OP posted an if statement though

but it's literally K&R style

2 is always used in java

>two types
No. When you are on his board, show St. IGNUcius some respect.
gnu.org/prep/standards/html_node/Formatting.html#Formatting

Attached: GNU style.png (869x411, 25K)

Disgusting.

who
auto
function_name(paramters) -> return type
{
...
if (condition)
{
...
}
}
[\code]
here

fuck i meant
if (condition) {
...
}

Java guidelines is two, so is every JS best practices ive seen. only MS douches like one

>not auto formatting your code using prettier

Attached: brainlet.png (413x549, 71K)

The second is objectively better as there are less lines of code.

If you use a curly brace language, you're probably a Pajeet.

Thanks for the update

Best of both worlds:
Whitespace before the brace until it wordwraps into the second line.

Attached: 1506487719768.png (211x239, 4K)

/thread

I prefer mine.


if (A == true)
{
dosomething;}

else if (A != true)
{
dosomethingelse;}

> if (A != true)

Attached: 1511038125083.png (1280x720, 1.73M)

I use the first one because I started with python, just feels more natural to me. Whenever I see the right style I have some compulsion to correct it, even though I know it's fine and I really shouldn't worry about it. Is it too late for me?

the only correct answer:
while( true )
{
if( something )
{
block;
} else
{
otherblock;
}
}

>indentation makes things sooo much more readable!

Attached: soyboy06.jpg (800x600, 58K)

Guy on the left looks like he could probably get a qtp2t asian gf

Where did you get that picture of me?

if (Condition)
{
Statements
/*
...
*/
}

Second from the left or the right?

>fags that will argue about shit like brace placement or tabs vs spaces indentation
vs
>actual developers who get shit done and don't have time for inane comments

if(c){s}

c?(s):0

2nd is more efficient to write and easier to read, prove me wrong.

anyone else thing the soiface is intimidating, like they will tear your throat out with their teeth the moment you try to run?

(if c (s) #f)

How can't you know this if you're a programmer? This is the coding standard. Search linux kernel coding style guide, read it, and you'll never have to start these treads again.

>This is the coding standard
ask me how I know you're a student

>not using intellij rider/resharper

it should be flush with the block of code. GNU style is fucking horrible.

One man's horror is another man's fetish.

To be honest, I did the first one throughout college, but have since shifted to the second. New line style looks kind of ugly, and bloats the line count (something I’m especially autistic about)

Attached: 1525432093491.png (1008x872, 428K)

This must be what learning kanji feels like.

thinking that an if should be treated as a class or function definition should get you fired faster

>using auto return type everywhere
just no

>inconsistent
That's not what inconsistent means. This would be inconsistent:
class ClassName
{
...
}
class ClassName {
...
}
In fact most open source projects have different styles for different keywords.

kernel.org/doc/html/v4.10/process/coding-style.html
man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/style.9

Why would you want to learn nip runes?

I use both.

And you are unempleyed if you don't use one.

It's not

Not really.

You may use a code formatter and not really care, it's really easy with this kind of tools to switch between both

I like to change it up depending on the mood I'm in when writing the class/function/whatever

>open source

That explains it. FOSS developers don't give a fuck about consistency and efficiency. It's all gobbledy gook.

Probably the best bracket style

function ()
/* description */
{
if() {

}
}

In 10 years, you stupid faggots will still be here mumbling about code style, languages, and other worthless bullshit.

fuck you

What if my first name is either Brian or Dennis?

馬鹿

allahu akbar my brother

switch (int) (A==true) {
case 1:
//do shit
goto exit;
case 2 :
//do other shit
goto exit;
default :
return ERROR_WTF_PAJEET;
}
exit :
//rest of program.

> If you use the 2nd, you're probably a dumb Pajeet webdev.
Way to start a thread.
nginx.com/resources/wiki/start/topics/examples/full/

>The first is literally only used on Microsoft stuff
it's 'allman style' and make a lot of sense.

yes, those who follow the agreed upon coding standards for the given project, and the autists that don't.

There may be two types of people, but there's only one true brace style.

I honestly think 2 is more readable than 1.

Yep, but you can learn 2200 kanji in 3 month. C++ will take longer.

It's more compact. When you have only 22 lines on the screen it's important not to waste space.

This but unironically

Attached: brackets.jpg (700x701, 103K)

Space for indentation. lol

Wasting precious filespace by using an entire line for just one bracket.
Who's the real pajeet.

>not coding in Python and enjoying the comfiest readability with no curly brackets bullshit

Attached: 1495501165372.png (671x519, 146K)

you minify it anway so it's no difference
at least in webdev