Which style do you use?

Which style do you use?

gross

Case

middle

mid

first one

TOCIS

1. For Javascript.
2. For everything else.

i dont get caught up on autistic things like ''''''''styles'''''''''' i use whatever im in the mood for

Middle

your code a shit

First one

The whole If statement looks more connected that way

What ever the style the company im working for asks for.,

What about this one?

bottom one, I find it easier to read.

This tee-bee-aech famalam

if( condition )
{
things;
}

if


(condition1)


{


shit;


}


else if


(condition2)


{


shit;


}


else


{


shit;


}

First one.

Depends on language.

C# the bottom one, JavaScript the top one. Never use middle

...

Le middle

myFun x | condition1 = ...
| condition2 = ...
| otherwise = ...