by Jach · 1w ago · 0 comments
The last time I did any professional work in PHP was probably 2012, though. Since then I've only maintained a couple things I originally made myself, and on rare occasions have written a standalone script or two (I think the last one was about 3 years ago) and it still makes me happy that I can just rsync things up to my site. Thankfully the maintenance work has been very minimal, but in contrast I've not been excited about any PHP changes since the early 5 days, and my upgrades from 5 to 7 to 8 were mostly just going "huh" (though sometimes "Eh? wtf") at the new features while being wary of breaking changes (the upgrade guides over the years have been helpful and there haven't been many breaking changes). When I look at modern PHP, it's structured quite differently to how my old waiting-to-be-rewritten maintenance sites are, and I don't like it, I just think it's become a worse Java, and most professional deployments seem to use a big framework and have a whole deployment workflow (vs. just copying a few files) so again why not just use a Java workflow that'll be at worst equally cumbersome but without all the PHP nonsense. On new language features specifically, I stopped getting excited over those in any language once I found my way to Lisp, where if you want some language feature, you don't have to wait for some committee to add it, you can just add it (or someone else has already added it, or it's always been there since before I was born). It's nice when other languages play catch-up, sure (though sometimes they implement something worse than not having it at all), but I can't ever muster excitement...
What makes it a PHP thing? To me it sounds like a bug that could occur in any library, but I neither have as much experience with PHP nor context on the bug.
I think this article does well at highlighting a lot of the PHP character: https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/ It wasn't a perfect set of criticisms even when it came out (and there were a lot of apologetics in discussions about it) and a bunch of things have changed since 2012, but the character hasn't. Maybe the tersest simplification is just the quote "PHP is a community of amateurs", though I don't think that fully captures it all, and in any case isn't necessarily bad and in many ways can be quite beautiful. But it's part of what gives the whole ecosystem its character and flavor for how things are built with it (and what bugs that surface look like) that other ecosystems don't share, and that character is what I'm getting at with how this particular bug seems like such a PHP thing. Like, spend some time reading up on ridiculous WordPress bugs, some even from this year, and you'll see similar expressions of character. That's not to say you can't find ridiculous bugs in, say, the Java ecosystem, but I think you won't find them as frequently, and when you do you'll more likely see an expression of their separate character as stemming from a bias towards over-abstraction / over-engineering rather than a feeling of amateur hour code slinging.