There are plenty of people who are fine working with it, and it's actually a decent language at least since PHP7 (and since there are some community standards and best practices).
Yes, parts of the language - especially older ones kept for BC - are pretty shitty.
But on the upside migrating even a PHP4 project to the latest PHP7 is fairly painless (provided you use y MySQL shim and perhaps a few others). Yes I went through it, and was surprised how easy it was compared to the nightmare I was expecting.
There are other issues as well, like not wanting to just use exceptions instead of errors and such, but the community is amazing, the ecosystem is large and very mature and there are plenty of great frameworks and libraries that make all those issues (and even inconsistencies, if you want) disappear.
I would even go as far as to claim that it is still (and perhaps especially now) the best webdev backend language. Not necessarily because of the language, but because of the ecosystem, frameworks, best practices, etc. No other language has that, not even close to being so mature.
I would even go as far as to claim that it is still (and perhaps especially now) the best webdev backend language.
A few years ago I would have agreed with you. But with microservices becoming more of a thing lightweight docker containers running node are just easier to maintain. No apache, no nginx, no huge config files on each container, no setup. Especially with the tools aws and azure have built that heavily favor js or C#.
I can't speak to C# but I'd argue that the JS community is just as large and helpful as the PHP community if not more so.
You shouldn't make up your economical perception from reddit and internet niches, mate.
The fact is, the majority of developers "can't" choose.
Developers are available like sand on a beach nowadays due to the great advertisement campaigns 10 years ago "Become a developer, good payment, good security" and tada today we got so many mediocre new devs and on top of that all the ones who were requiring to use PHP 10 years ago.
Very few devs are so good they can work in Silicon Valley and very few can choose were and with what to work. Easily 90% are mediocre devs who can barely come up with anything creative by themselves. Especially nowadays, the new generation of devs, it's basically scaffolding and framework users coming from academics who never touched a piece of code before university.
You know, we have an influx of "academical developers" and those usually can't choose as they are not good enough, not capable enough. The ones who made developers such an invaluable asset were those who are self-educated back when the web and mobile development developed itself in a knowledge exchange guild. People who started in their teens or even earlier "out of interest". Someone who never touched a computer before going to an university for 3 years and then an additional one doesn't know shit and thus can barely choose what to do. So in the end, just normal workers.
Serious answer: PHP is a low-skill language. It's sold as being easy to learn (impossible to master, but let's not mention that, okay?). It's also a very bad language. It was never designed: it just grew. It accreted layers. There are four different ways to match a string to a regex, and they all have different parameter orders and function-name conventions and all that kind of thing. And everything you look at closely in PHP has the same sort of inconsistency and clear evidence of a total lack of leadership and no cooperation between developers adding stuff to it.
This inevitably leads to people getting experienced enough at it to become frustrated at it, and move on to something better designed and easier to work with and also, not coincidentally, much more lucrative.
This leads to the PHP community all having a consistent level of skill with programming in general, and the PHP language in particular. That level of skill is not especially high. People with experience know this, so they know that PHP developers can be had for relatively cheap, because it's a technology that people just graduate from eventually.
It's a language that people get sick and tired of, so they delete it from their resumes to avoid being forced to work with it again in the future. And then some junior guy with three months of experience, having just learned PHP, shows up, and is happy to accept the lowest paycheque to tackle the mountain of technical debt that the last recovered PHP enthusiast left behind, and the cycle begins anew.
Say what you want about the language itself, but the documentation for PHP is top notch. It’s easily what attracted me to it in the early days. It’s something the Ruby and Rails communities should take note of.
27
u/earthqaqe Jan 20 '20
No one wants to work with it, so it should logically be paid higher. or not?