this post was submitted on 10 Feb 2024
223 points (99.6% liked)

196

16822 readers
610 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

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

founded 2 years ago
MODERATORS
223
Antimemes rule (lemmy.dbzer0.com)
submitted 1 year ago* (last edited 1 year ago) by moosetwin@lemmy.dbzer0.com to c/196@lemmy.blahaj.zone
 
you are viewing a single comment's thread
view the rest of the comments
[–] Wirlocke@lemmy.blahaj.zone 5 points 1 year ago* (last edited 1 year ago)

I feel like I'd use Allman for large blocks of code (though in those situations it's probably better to stick the code in a function first) and I'd use K&R for 1 or 2 lines of code (like calling a function).