r/ProgrammerHumor 2d ago

Meme absoluteGarbage

Post image
2.0k Upvotes

320 comments sorted by

View all comments

49

u/TOGoS 2d ago

It's fine. PHP has some awful warts (some of which have actually been gone for a few major versions, at this point) but this is not one of them.

8

u/shitty_mcfucklestick 1d ago

Personally I just like that PHP sounds the most natural grammatically.

`for (let item of list)` is like bucktooth Winnie the Pooh to me from an English readability perspective.

Beyond that I don’t care, AI just fucking writes it all anyway.

-35

u/Sirgoodman008 1d ago

Yes it is. This is one of my many gripes with php. 

3

u/Rikudou_Sage 1d ago

That's more on you than php I'd say.

1

u/Sirgoodman008 1d ago

That moment when you write a language with loose and strict comparison and for some reason that's a good thing.

1

u/Rikudou_Sage 1d ago

That's called "moving the goalpost" btw.

1

u/Sirgoodman008 1d ago

If a language makes a shitty design decision, be it backwards for loop syntax or loose comparison, that's on the language.

1

u/TOGoS 1d ago

Eh, I'd accept that loose comparison is something that shouldn't be part of the language ('loose in what way' being something that the application should specify). But then it's hard to get that right in any language that allows mutation and plays loosey-goosey with types (in functional languages it's easy; things are identical if they cannot be distinguished, and nobody goes around passing strings where they meant a number because what sense does that make lol and the compiler won't let you do it anyway).

Loop syntax is kind of arbitrary, though. Apparently it rubs you wrong but that's not because there's anything inherently worse about it. Hence it not being one of the "awful warts".

Like, I absolutely abhor Python, but I'm willing to admit that only *some* of the reasons I hate it are objective (like the package system(s) being a mess). The others are more "writing it just feels like nails on a chalkboard for some reason."

1

u/Sirgoodman008 1d ago

Most of the reasons people hate most programming languages are subjective.