>>1041304
I don't do web development so I'm not really the expert on the matter.
I have done some PHP tweaking in the past and I've messed-around with Flask a bit, but it's not like I'm well-versed in web technologies.
PHP seems entirely workable and the way it is structured doesn't bother me. The syntax is a bit strange to look at, but compared to other web languages it's really not that bad and you can get a feel for it.
Seems like most of the complaints of quirkiness come from some of the more advanced features.
It's so old that stuff any modern web language might want to do by default, such as sanitizing user input, hadn't really been a concern when it was made.
Plus some general other design choices that probably seemed fine when the web was pretty simply and you just wanted to let people submit text in a box and generate a response in return.
But it's fast and effective and good as the simple tasks it was designed to do.
I get the feeling that half the hate comes from veteran backend developers who are sick of dealing with some of its worst attributes and feeling like there's no alternative out there for backend development.
But the other half of the complaints seem to come from the same crowd that will whine about being made to take a C++ course because "ugh so much rewriting the same stuff and not safe and I could be doing Rust right now instead".
The problem is that I've never seen a pervasive replacement for PHP. All the options are slower or have their own problems. Leads me to believe backend development just sucks (it does, just less than frontend development) and everyone is just gravitating towards the thing that's broken in ways they don't mind.
Which just leads me to believe that PHP isn't very "modern" but it's perfectly serviceable.
Mainly because I'm projecting all the hate C++ gets onto it, where people who can't understand pointers try to make the argument that it's not something they should have to learn and the language should "just take care of it".
Apply that logic to web stuff and the hate I see for PHP aligns perfectly.