this post was submitted on 25 Nov 2025
330 points (99.4% liked)
Programmer Humor
27506 readers
1529 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
My current favorite is in ruby with the unless keyword:
To me, anything payments related you want to be really super clear as to what you're doing because the consequences of getting it wrong are your income. Instead we have this abomination of a double negative, several turnaries, and no comments.
FYI, an operator with three arguments (such as ?:) is called ternary. The word is related to tertiary, if that helps remembering it.
Correct, and since there are multiple instances I'm using a plural form, and fighting autocorrect at the same time.
I know you were using multiple instances, but I wasn't sure if that was a typo, auto cow wrecked or genuinely not knowing.
Hm. Needs to be unrolled into early returns and have some unit tests strapped tight around it