this post was submitted on 25 Oct 2026
190 points (93.6% liked)

Programmer Humor

33769 readers
2550 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
[–] carotte@lemmy.blahaj.zone 15 points 2 hours ago* (last edited 2 hours ago) (2 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

[–] ChogChog@lemmy.world 2 points 37 minutes 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 2 points 1 hour ago

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

[–] melsaskca@lemmy.ca 2 points 1 hour ago

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".

[–] AlboTheGuy@feddit.nl 12 points 2 hours ago

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

[–] portnull@lemmy.dbzer0.com 3 points 1 hour ago

Functional is better than object orientated programming

[–] mcv@lemmy.zip 4 points 2 hours ago

useState worse than useEffect? I'm not much of a React expert, but I understand useState. useEffect mostly seems to be an excuse for the most horrific spaghetti code since before the abolition of goto.

[–] MonkderVierte@lemmy.zip 1 points 1 hour ago* (last edited 39 minutes ago) (1 children)

That putting more and more cutting edge technology in our daily computing, that can only be manufactured by a few multi-trillion-dollar-fabs, is a good thing. Not in a politically unstable world like we currently have. And this will not get better the next 50 years, with climate change. Our computing is good enough, we should focus on making it more accessible.

[–] SayJess@lemmy.blahaj.zone 2 points 40 minutes ago

Unlimited growth baybayyyyyyy! If you stand still, you lose! Other gross capitalist talking points!

[–] teolan@lemmy.world 23 points 4 hours ago
[–] abc@suppo.fi 16 points 4 hours ago* (last edited 4 hours ago) (2 children)

PHP sucks and every attempt at defending it is pathetic.

I get warm and fuzzy feelings that people here are not even talking about it. Perhaps I should follow that trend.

[–] menas@lemmy.wtf 7 points 3 hours ago

PHP is the best web language, not because it's a good language, but because the other are worst

[–] ThunderComplex@lemmy.today 4 points 3 hours ago

I am with you all the way. For a high level programming language it’s incredible how close to C it is at times AND how many footguns the entire language has.
And you always hear the “a poor craftsman blames his tools” analogy when someone says PHP bad. But PHP is a hammer that’ll blow your arm clean off when you hit a nail at a slightly off angle.
There is no defending it, and it should have been replaced with better languages several times over.

Ok I need to stop myself now I can rant about this language for hours

[–] gwl@lemmy.blahaj.zone 6 points 3 hours ago (1 children)

JavaScript is a chaos gremlin but it's MY chaos gremlin and I wouldn't change it for the world

load more comments (1 replies)
[–] Valmond@lemmy.dbzer0.com 12 points 4 hours ago (1 children)

Sometimes we have to use them, but Java and C# sucks hard as languages.

[–] MrScottyTay@sh.itjust.works 4 points 3 hours ago (1 children)

I actually really like C#, it's my favourite. But don't know how much of that is Stockholm syndrome at this point haha. But whenever I'm writing in other languages i always end up missing something i do regularly in c#, especially from it's latest versions (which i also deeply miss when forced to work on legacy software that is still using shit like version 4 or 5 of C# (ASP.NET 4.8 / .NET standard) whereas I feel like C# really got good and fun to use from C# 8 onwards (I think this was .NET Core 3.0 or .NET 5 - we're on C#14 now with .NET 10, with 15 on the horizon).

load more comments (1 replies)
[–] ulterno@programming.dev 0 points 1 hour ago

clang format only serves to make code unreadable.

Looks like this person hasn't seen how badly some people will format their additions to a codebase.

But yeah, it does serve as a good way to get rid of multiple break-times every time an update is required.

[–] ulterno@programming.dev 0 points 1 hour ago
load more comments
view more: next ›