this post was submitted on 07 Oct 2025
170 points (91.3% liked)

Programmer Humor

26827 readers
2242 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] grueling_spool@sh.itjust.works 31 points 4 days ago (1 children)

I have no C# experience and both styles look fine to me. /shrug

[–] Venator@lemmy.nz 13 points 4 days ago (1 children)

I have loads of experience with C# and both styles look fine to me. /shrug

[–] Lemminary@lemmy.world 4 points 4 days ago (2 children)

Same here. Also, this syntax is common in modem JavaScript, I don't get the hate.

[–] Venator@lemmy.nz 8 points 4 days ago (1 children)

this syntax is common in modem JavaScript

I think you might have just explained the hate 😅

[–] Lemminary@lemmy.world 3 points 4 days ago

Sure, but those are people who hate JavaScript for the sake of it. The rational ones hate it for its inconsistencies because the one thing JS gets right is its syntax.

[–] MaggiWuerze@feddit.org 2 points 4 days ago

yeah, in kotlin as well, except its '?:' instead of '??='