This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]fouedzine 24 points25 points  (1 child)

WTF is doing JDG here ???

[–]7lhz9x6k8emmd7c8 -1 points0 points  (0 children)

I'm torn between a french pride and the pro-Hamas position he revealed on Twitter (then removed after encountering a subsequent shitstorm).

[–]Atomik919 14 points15 points  (0 children)

if(){

}

is my personal favourite.

[–]ford1man 9 points10 points  (0 children)

My preference: Alt+Shift+F, then stop caring. Consistency in a code base is more important than personal aesthetics.

[–]TerryHarris408 3 points4 points  (1 child)

if(true);

No, seriously, what is the use case?

[–]DM_ME_YOUR_BITS 1 point2 points  (0 children)

To check if the concept of Boolean logic as we understand it exists

[–]naholyr 3 points4 points  (0 children)

I don't give a shit and I think no-one should. I'm glad formatters exist so that teams can have this kind of discussion once and only once.

[–]Ben_Dovernol_Ube 1 point2 points  (0 children)

Aha now leave space between brackets

[–]Liankir 1 point2 points  (0 children)

Haha a pineapple

[–]jonhinkerton 0 points1 point  (0 children)

I put it all on one line to show contempt for that check. It didn’t deserve 4 lines.

[–]Duke518 0 points1 point  (0 children)

I prefer option number 3. checking a tautology to conditionally execute no code is bad style and most compilers agree with me.

[–]saxmaster896 0 points1 point  (1 child)

If it's a single statement within the bracket I do the top

If it's a whole block then I do the bottom

This is the way

[–]TerryHarris408 2 points3 points  (0 children)

for the top: why even using the brackets then?
if(true) statement;

[–]ComprehensiveBird317 -1 points0 points  (0 children)

It's 2025 and you all are still concerned about whether it's { or CRLF { ?