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

196

16822 readers
590 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
[–] amotio@lemmy.world 30 points 1 year 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.

[–] sunoc@sh.itjust.works 6 points 1 year ago

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

[–] Hawk@lemmy.dbzer0.com 3 points 1 year ago (1 children)

Won't even compile in languages like Go though

[–] amotio@lemmy.world 6 points 1 year ago

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

[–] gandalf_der_12te@feddit.de 3 points 1 year ago* (last edited 1 year ago) (1 children)
while (x == y) {

   func1();
   func2();
}

notice the newline