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

196

667 readers
36 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
 
top 13 comments
sorted by: hot top controversial new old
[–] lordmauve@programming.dev 14 points 9 months ago (1 children)

This bullshit is why I use Pyrhon

[–] pkill@programming.dev 4 points 9 months ago

For concise, FP-style scripts it's quite neat. For complex OO software? Pass

[–] gandalf_der_12te@feddit.de 12 points 9 months ago

Wir sind eine diskriminierungsfreie Gemeinschaft.

[–] AVincentInSpace@pawb.social 8 points 9 months ago

Please add this to the list of things I will fight Richard Stallman about

love wins !! <33

[–] 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).

[–] moosetwin@lemmy.dbzer0.com 4 points 9 months ago

the paint bucket tolerance was too high before and fudged some of the text

[–] ChildEater@iusearchlinux.fyi 3 points 9 months ago (1 children)

I was a K&R guy forever but I've been learning C++ recently (I know..) and I've found myself gravitating towards Allman more and more

[–] 1993_toyota_camry 3 points 9 months ago (1 children)

K&R has always seemed like home to me, but I agree that Allman is pretty alright

[–] AzzyDev 2 points 9 months ago

I used Allman in my C# days and the spacing always felt weird to me since i came from java :(

[–] boo_@lemmy.blahaj.zone 2 points 9 months ago

I formatted all my C code in High School with the GNU style. I'm not sure my teacher even read the code :P

I mostly write Lisp today, but that GNU style still has a special place in my heart. As long as it's automatically formatted, I'm fine with whatever style, though.

[–] Dragon@lemmy.ml 1 points 9 months ago

I've never seen Haskell used, but it looks the most readable. I would consider using it if I didn't think it would piss off other devs.

[–] lugal@sopuli.xyz 1 points 9 months ago

Haskell style would be a recursive function