this post was submitted on 25 Oct 2026
227 points (94.2% liked)

Programmer Humor

33786 readers
2558 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.

top 50 comments
sorted by: hot top controversial new old
[–] jason@discuss.online 3 points 14 minutes ago

OOP dogma isn't just bad, it's actively harmful. OOP leads to unnecessary boilerplate. Any boilerplate that is not absolutely necessary is noise and bad. Full stop.

Private (Getters/setters): Strictly not a necessity in any sense of the word.

Short functions everywhere.

Short files everywhere.

I prefer to see the steps of execution that are actually happening in the real world on hardware. Not an ivory tower of code that happens to execute.

[–] firelizzard@programming.dev 4 points 1 hour ago

React is a plague. useState and all the other use hooks.

[–] philipp_@discuss.tchncs.de 12 points 1 hour ago (2 children)

systemd does a lot of things very right and a mayor reason that linux is in a way better place than 15 years ago. 27 unmaintained tools are not better than one that is professionally developed.

[–] marcos@lemmy.world 4 points 1 hour ago (1 children)

Systemd solves a very important problem that was defined extremely well.

It also solves it badly, and solved a whole lot of other badly defined problems that it shouldn't.

[–] kalpol@lemmy.ca 1 points 21 minutes ago

This is my argument. Do init. Don't pull in literally everything else because you think you know better, like system logging.

[–] Allero@lemmy.today 7 points 1 hour ago (1 children)

systemd has me in two places. Like, on one side, it's just SO much better and easier than the rest - at least to me, someone who doesn't work in IT and just wants his stuff to work. On the other, init freedom is essential, and we need the alternatives to stay alive.

[–] excel@lemming.megumin.org 2 points 51 minutes ago* (last edited 50 minutes ago)

APIs generally don’t need many alternatives, only implementations do. There’s no reason devs should be trying to provide init files in multiple formats. If the systemd team actually did something bad, then people could just make a different implementation of systemd without requiring a different format for init files. Arguing for more init systems is like saying we need more APIs to compete with both Wayland and X11, instead of just talking about implementations of those protocols.

[–] Hundun@beehaw.org 5 points 1 hour ago

If you are getting paid for engineering software, your labour should be licenced in an appropriate jurisdiction, and you should be liable to losing said licence if you do shit job.

[–] themaninblack@lemmy.world 1 points 37 minutes ago

If there are spelling mistakes in your codebase, that’s a huge smell

[–] FedX@quokk.au 2 points 2 hours ago

A good programmer doesn't need the internet.

[–] carotte@lemmy.blahaj.zone 31 points 6 hours ago* (last edited 6 hours ago) (5 children)

if you're making a user-facing program, you should always design with the possibility that it will be run on some truly dogshit hardware and you should make sure that they still have a good experience. good computer hardware is a luxury on the world scale, even before the rampocalypse

related, but the answer to the question "who still uses {x} these days?" is almost always way, wayyyy more people than you think

[–] Allero@lemmy.today 5 points 1 hour ago* (last edited 1 hour ago)

Me when I got my commercial NAS with 7 years of support, I was thinking: "who even keeps hardware for this long?"

Me, 7 years later: "What do you mean EOL?!"

I certainly learned to care for and appreciate the hardware these years.

[–] hansolo@lemmy.today 3 points 1 hour ago

There's about 0.2% of people still using internet explorer, per one market share site I found.

Which works out to potentially millions of people.

[–] ArsonButCute@programming.dev 2 points 1 hour ago

I do my web development on a 2005 era windows XP machine without the unofficial SP4 because if it will run there (without silverlight) I know for damn sure it will run well on anything made today.

[–] ChogChog@lemmy.world 5 points 3 hours ago

That’s so why a lot of artists I know of when mixing, like to test their songs on stock/sub-par monitors. Not everyone has reference quality equipment and you want to make sure your song works just as well thumping with the windows down as with your hi-fi system.

[–] Gradually_Adjusting@lemmy.ca 4 points 4 hours ago

I agree. Designing based on "Who uses x anymore?" Just reinforces the ever-increasing cost of computing.

[–] portnull@lemmy.dbzer0.com 12 points 5 hours ago (3 children)

Functional is better than object orientated programming

[–] marcos@lemmy.world 2 points 1 hour ago

There's nothing in Functional Programming that stops you from writing in an Object Oriented idiom...

[–] ThirdConsul@lemmy.zip 4 points 2 hours ago (1 children)

Could you define what you mean by functional and ooo in practice, because to many people in pracitce functionsl is a garbage monad wrapper over anything with unreadable, undebugable code whose only purpose is to hide if else statements... and it doesn't even do that; while ooo is java factory of factoties mixed with aspect programming and 20 levels of inheritance.

[–] wewbull@feddit.uk 2 points 58 minutes ago

Not Op but..

OO languages have classes with inheritance based polymorphism. I don't see struts + methods as enough to qualify.

Functional languages have functions which can take functions as arguments and function composition as first class features.

[–] NoLemurs@lemmy.world 2 points 3 hours ago

100% agreed, though I'm in the "neither is ideal" camp. My favorite language, by a long way at this point is Rust.

It's not functional, but borrows a lot of functional idioms while avoiding the pain points functional language usually hit in exchange for losing the purity of functional languages.

[–] melsaskca@lemmy.ca 5 points 4 hours ago (1 children)

The billionaire tech bros are making money hand over fist without the need for advertisers subsidizing them, and interrupting users all over the world. Little secret...the users know products exist and will go out and seek those products when it is necessary to do so. This activity leads to learning about more products through the ancient art of "browsing".

[–] isVeryLoud@lemmy.ca 1 points 1 hour ago

Advertising is education with misinformation

[–] AlboTheGuy@feddit.nl 13 points 6 hours ago

Java Is actually good for what it does, maintain long term systems that only need updating every once in a while

load more comments
view more: next ›