this post was submitted on 25 Oct 2026
375 points (95.2% liked)

Programmer Humor

33939 readers
523 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 3 years ago
MODERATORS
 

Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

you are viewing a single comment's thread
view the rest of the comments
[–] noahm@lemmy.world 9 points 1 week ago (1 children)

The unless keyword is an abomination

[–] historicaldocuments@lemmy.world 4 points 6 days ago (1 children)
x = "I disagree."
y = false
puts x unless y

I miss it when writing python.

[–] noahm@lemmy.world 3 points 6 days ago (2 children)

Specifically I hate it as a prefix. It's even worse when else clauses become involved!

x = "this is great"
y = "this is awful"
z = false

unless(z)
  puts(y)
else
  puts(x)
end
[–] psud@aussie.zone 1 points 2 days ago (1 children)

In that case it's just a synonym for

if (not z)
[–] noahm@lemmy.world 1 points 2 days ago* (last edited 2 days ago)

yes, and? Having to translate unless to if not is basically exactly why I hate it. Just write if not

Despite this being the perfect spot for one, I'm not a fan of ternary operators but syntax isn't supposed to matter...

Since we're going for unpopular opinions or hills to die on: if syntax didn't matter we'd all be using Ada.