220
submitted 8 months ago* (last edited 8 months ago) by Feathercrown@lemmy.world to c/196@lemmy.blahaj.zone
you are viewing a single comment's thread
view the rest of the comments
[-] wreckedcarzz@lemmy.world 17 points 8 months ago

Allman or gnu, rest are fucking bonkers

[-] Metype@lemmy.world 16 points 8 months ago

Putting the opening curly brace of a code block on the same line that defines the conditions the code block will run under is bonkers?

[-] jwelch55@lemmy.world 6 points 8 months ago

There's an asymmetry to it that always left me uncomfortable.

[-] doctorcrimson@lemmy.today 4 points 8 months ago

If we're judging purely on readability then I think Allman probably has the edge, here. You can see at a glance where the encasement starts or ends in a vertical column on the far left. Of course, that's a moot point if the programmer's color coding is set up to where it is obvious.

load more comments (3 replies)
this post was submitted on 10 Feb 2024
220 points (100.0% liked)

196

16386 readers
1730 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS