this post was submitted on 25 Oct 2026
371 points (95.1% liked)

Programmer Humor

33823 readers
2008 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
[–] abc@suppo.fi 35 points 3 days ago* (last edited 3 days ago) (3 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.

[–] ThunderComplex@lemmy.today 14 points 3 days ago (1 children)

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

[–] Hasherm0n@lemmy.world 11 points 3 days ago (1 children)

I saw a nice counter to the "a poor craftsman..." analogy the other day that basically boiled down to a master craftsman will have very high standards about the tools they use.

[–] ThunderComplex@lemmy.today 5 points 2 days ago

Yeah, I wholeheartedly agree with this. And it's not only frustrating that PHP doesn't live up to the high bar, every ""major"" update to PHP (that you graciously only get once a year) is only a small step in the right direction. They try to modernize it, buuut also try to keep it as backwards compatible as possible.

And I think I've also seen a counter to the "a master craftsman will have very high standards" argument that boils down to "a master craftsman can work with any tool regardless of quality" but why can't we have higher standards in the programming world?

[–] Shanmugha@lemmy.world 8 points 2 days ago (1 children)

I have no idea how anyone who ever used it for anything actually useful can be defending it

[–] fibojoly@sh.itjust.works 3 points 2 days ago

Back in the day, it let me generate GIFs programmatically from the back end, and that was fucking magic compared to doing it in C. That was in 98. I didn't really follow afterwards as I'm more of a backend guy.

[–] menas@lemmy.wtf 11 points 3 days ago (1 children)

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

[–] Feathercrown@lemmy.world 1 points 2 days ago (1 children)

You seriously think PHP beats TS?

[–] menas@lemmy.wtf 2 points 2 days ago (1 children)

Ecologically ? Yes; with phalcon you could use low level execution

[–] Feathercrown@lemmy.world 1 points 1 day ago

I don't use php (poop h poop) I don't know what those words mean sorry 😎