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

Programmer Humor

28535 readers
1037 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
[–] UnderpantsWeevil@lemmy.world 7 points 3 months ago* (last edited 3 months ago)

Boiling down multi-line expressions into single line statements has been a trend in Comp-Sci for a while.

That

X = IsY ? Y : Z

format has been around for decades.

I generally prefer it to clunky if-statements