this post was submitted on 10 Feb 2024
207 points (96.4% liked)

196

16503 readers
2342 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
207
Antimemes rule (lemmy.dbzer0.com)
submitted 9 months ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] amotio 31 points 9 months ago (3 children)

I was for long a long time using Kernighan style, but recently switched to Allman. Everything is suddenly more readable. It's a journey.

[–] [email protected] 6 points 9 months ago

This! Similar journey for me going from K&R to GNU!

[–] [email protected] 3 points 9 months ago* (last edited 9 months ago) (1 children)
while (x == y) {

   func1();
   func2();
}

notice the newline

[–] Feathercrown 7 points 9 months ago
[–] [email protected] 3 points 9 months ago (1 children)

Won't even compile in languages like Go though

[–] amotio 5 points 9 months ago

Good thing I dont use Go. Primarly php for work, c# for hobby racing game in unity.