What indent style do you use?

What indent style do you use?

Allman masterrace coming through.

>reddit spacing
>reddit brace spacing
IT ALL MAKES SENSE NOW

There's no need for braces if your conditionals are a single line.

I use same-line brackets for initializer lists and type definitions and new-line brackets for everything else.
I also like to use higher order conditional statements in order to make my loops and conditionals require only a single line so they won't need brackets.
Have you ever written a succinct 5-level nested for loop that required only a single semicolon?
Stuffing the middle segment of a for loop with multiple commas doesn't count either.

K&R

1TBS. Monitors have less vertical space than horizontal. Why would you waste that precious vertical space on opening braces?

>1TBS. Monitors have less vertical space than horizontal.
why not get a monitor you can rotate?

type function (arguments) {
if (condition) {
/* code */
} else {
/* code */
}
}

>not following the style of the language, the project, or your team
i'm normally a braces-on-newline kind of guy, but i noticed that everyone in javascript does it on the same line, so i follow that guideline

K&R for C
For php I find allman to be superior

I just do whatever the fuck I want and then the Visual Studio solution that one of my coworkers set up fixes it.

printf("%d is "+n==x*"not "+"equal to %d \n", x, n)

Because then you end up with positively anemic horizontal space or way too much vertical space. And you then realize the reason why monitors are wider than they are tall is because of the way our eyes work.

>not rotating your monitor 35°
it's almost like you don't want to succeed

#include
#include

#define GNUMASTERRACE 1
#define PLEBIAN -1

int
gnu_style_masterrace(char *code)
{
char *style = "gnu";
bool is_masterrace = false;
is_masterrace = check_style(code, style);
if (is_masterrace)
{
printf("You did good man\n");
return GNUMASTERRACE;
}
else
{
printf("You should kys\n");
return PLEBIAN;
}
}

>redditspacing
it's like you're not even trying to fit in


Ratliff or K&R are the only acceptable answers

I've got a VESA mount and can rotate my monitor any which way I please.

A good investment, I might add. Pay once for one of decent quality, use it over and over and over again.

rate my meme
i actually do this haha :6]

>There's no need for braces if your conditionals are a single line.

Braces make version control much easier.

if (22/7 == M_PI) {statement1;
statement2;
doSomething();}

...

Throw your computer in the trash, then remove your wrists so I never have to look at this again.

what the fuck are your colors? you're going to have eye trouble within a year.

...

this is correct, everything else is wrong

Disgusting. C is not ASM.

I've found 1 tab (8 spaces) looks the sexiest.