Which one of these is the most disgusting indentation style?

Which one of these is the most disgusting indentation style?

Attached: indent.png (1752x1346, 217.19K)

Other urls found in this thread:

suckless.org/coding_style/
twitter.com/AnonBabble

Damn, Haskell style is pretty based.

allman is objectively the best

Allman for functions and K&R everywhere else
suckless.org/coding_style/

also, holy fuck. I thought GNU was the worst style until I saw haskell.

>objectively

Attached: 1642432555948.png (800x387, 173.17K)

Horstmann is objectively the worst.

What's so special about function that you have to break consistency of your formatting style?

Horstmann the most disgusting
Haskell style looks too fucking outlandish for it be even considered

Attached: 1637257415737.png (2352x2260, 982.2K)

This. Allman is the most readable. Why would you smush everything together? Are you coding on a phone screen?
"based" being a synonym for "dangerously retarded"

it looks nicer ^~^

int
fun(int x, int y)
{
int ret;

if (x) {
/* do stuff */
} else if (y) {
/* do stuff */
} else {
/* do stuff */
}

return ret;
}


and of course, ALWAYS use tabs for indentation and spaces for alignment. unfortunately Any Forums removes tabs from codeblocks, faggot moot.

>-----------br {
> insead of
>-----------br
>-----------{

>smush everything together

OK NIGGER

for me, its
while (x==y) {
something();
somethingelse(); }

>t. nocode

```go
// good
for
{
go FuckYourselfTranny()
}
```
```go
// bad because "muh smush everything together"
for {
go FuckYourselfTranny()
}
```

Everything except Allman and K&R is godawful.

WTF no markdown support? how do you write code here?

I simply run the autoformatter and do not give a single shit
These arguments are incredibly unimportant

>>>/reddit/

Read the sticky and stop performatively posting edgy no-no words
Just because you're allowed to doesn't mean you have to

I prefer whitespace indendation
regardless of language

Attached: jython.png (597x255, 50.55K)

Here's how my previous workplace formated C++ code:
int
FooBar(
int aSomething,
int aSomethingElse)
{
int bla = aSomething + aSomethingElse;
return bla;
}


At first I was absolutely horified, but now I write all my personal code the same way.

Looks like suckless.

Attached: 1643149163196.png (804x906, 45.78K)

this. Only good brackets, the rest is retarded and school conditioning

In most languages, functions are actually special (they can't be nested in C and many C-style languages). So it makes it sensible to visually differentiate them from other loops, and then a consistent style means you do this for all languages even where they can be nested.

Here's my coding style. Based or cringe?
(Ignore the fact that this code uses a shitty array instead of a linked list or some more appropriate data structure. I wrote it a long time ago.)
DLLAPI BOOL WINAPI WaitOnAddress(
_In_ volatile VOID *Address,
_In_ PVOID CompareAddress,
_In_ SIZE_T AddressSize,
_In_ DWORD dwMilliseconds)
{
SIZE_T idxACVA;
SIZE_T idxNullSlot;
BOOL bReturn;
DWORD dwLastError;

if (!Address || !CompareAddress) {
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
} else if (!(AddressSize == 1 || AddressSize == 2 || AddressSize == 4 || AddressSize == 8)) {
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}

// rest of code omitted for brevity
}

DLLAPI VOID WINAPI WakeByAddressAll(
_In_ PVOID Address)
{
SIZE_T idxACVA;
// look for first slot in the table which contains the matching Address
EnterCriticalSection(&ACVATblLock);
for (idxACVA = 0; idxACVA < ACVATblSize; ++idxACVA) {
if (ACVATbl[idxACVA] && ACVATbl[idxACVA]->Address == Address) {
WakeAllConditionVariable(&ACVATbl[idxACVA]->CVar);
break;
}
}
LeaveCriticalSection(&ACVATblLock);
return;
}

Attached: 1628508403953.png (420x591, 21.38K)

2 secs googling show allman is k&r, and k&r is the bjarne stroustrup variant.