220
submitted 1 year ago* (last edited 1 year ago) by Feathercrown@lemmy.world to c/196
you are viewing a single comment's thread
view the rest of the comments
[-] Metype@lemmy.world 16 points 1 year 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 1 year ago

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

[-] doctorcrimson@lemmy.today 4 points 1 year 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.

this post was submitted on 10 Feb 2024
220 points (100.0% liked)

196

17462 readers
733 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS