176
you are viewing a single comment's thread
view the rest of the comments
[-] Mozingo@lemmy.world 26 points 4 months ago

I don't get it. I literally write code that looks like both of these all the time. Null coalescing is cool, and very handy sometimes. In this particular case, I'd probably write it more like the left, since it's more standard and my coworkers would be more familiar with it, but the right obviously does the same thing and I have no issues reading it.

this post was submitted on 07 Oct 2025
176 points (91.5% liked)

Programmer Humor

29845 readers
475 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