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

Programmer Humor

26860 readers
2460 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
[โ€“] masterspace@lemmy.ca 20 points 6 days ago (1 children)

And that improves readability, how?

Because null checks are an extremely common operation to have to do, and this let's your code read as just the business logic without these constant null checks breaking things up by multiple lines.

It's only not readable to you because you're not used to them. That's the case for literally every bit of new programming syntax that comes along.

[โ€“] victorz@lemmy.world 4 points 5 days ago

Exactly. Not adding efficient things because "they will be new" is just silly. We adapt, as programmers. We learned the language a first time, so we know what it means to learn things. Just like in English when you come upon a word you don't understand, either you understand it by its context, or you just look it up. Simple as that.