this post was submitted on 18 Jan 2024
719 points (98.5% liked)

Programmer Humor

19594 readers
1731 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 40 points 10 months ago (1 children)

i mean, “unless” tends to be the usual term for an “if not” keyword in languages that implement such a thing

[–] [email protected] 20 points 10 months ago (3 children)

Which is awful and incredibly confusing. I hate ruby

[–] [email protected] 3 points 10 months ago

totally agree; just saying that if it’s GOT to be something, that something should probably be unless… unless . . .

[–] [email protected] 3 points 10 months ago (1 children)
[–] [email protected] 3 points 9 months ago
[–] [email protected] 2 points 10 months ago

I find that you need to choose carefully when to use it. Simple cases tend to be alright. Larger, more complex conditions shouldn't touch it.