this post was submitted on 25 Oct 2026
366 points (95.3% liked)

Programmer Humor

34305 readers
1335 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
[–] fargeol@lemmy.world 123 points 1 month ago (5 children)

Getters and setters are ridiculous

[–] gastroglizzy@piefed.social 66 points 1 month ago

I don't like working with them any more than you do, but they're necessary to enforce read/write-level security. Without them, there'd be no differentiation between reading a variable and writing variable from an external class, which kinda defeats the point.

From a development standpoint, they're an extra hurdle to clear. From a security standpoint, they're a necessary evil.

[–] UnfortunateShort@lemmy.world 45 points 1 month ago

That's why people invented properties / auto generated getter/setter - in at least 95% of cases they are just busywork.

[–] TootSweet@lemmy.world 3 points 1 month ago

Oh my god. I'm not the only one who thinks this!

[–] alstocras@lemmy.dbzer0.com 1 points 3 weeks ago

the horrors of object oriented programming