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

196

667 readers
37 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
135
Antimemes rule (lemmy.dbzer0.com)
submitted 9 months ago* (last edited 9 months 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 4 points 9 months ago* (last edited 9 months 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).