DEV Community

Discussion on: Why developers hate PHP

 
andreidascalu profile image
Andrei Dascalu

Well, yes and no. The OP was an academic question. Why PHP gets hate. There are plenty of reasons.
Does that mean PHP is a bad tool? Not at all. It's not the best, regardless of use case, there will always be something better.
But nobody's trying to convince people to change what they use. For any given participant here it's true that whatever they use now is good enough, otherwise they would be looking for a change.
Like you say, you'd need a use case to consider a change. 80% of people are like that. Then there are people that don't need to learn under pressure and are just curious.
Kubernetes has nothing to do with high traffic. It helps but it's not the only use case. In our company we use it to keep experimentation costs down. There are a bunch of VMs in a cluster and if you are a dev all you need to do to get your app public is to describe it in a Dockerfile and push it to a repo. In a few minutes you can automagically access it through the cluster ingress. Cluster size goes up and down automatically. It's not under heavy traffic but it makes deployment a breeze, regardless of language.
But on the language subject, it also matters what you want to use. People use Typescript but that doesn't make it good. While I'm OK with PHP and will probably always use it in some capacity, I acknowledge there are better things out there. But Typescript is crap, even though it was necessary when it came out. Nowadays Reason is way superior (and was created by the React guys for React) and hopefully will get traction.
There's plenty of great things out there as long as you can get out of the bubble. Symfony has crappy performance but run it under swoole or roadrunner and you have something (look at the benchmarks you provided). Often it's not even about changing tools just about using them slightly differently.

Thread Thread
 
jcarlosweb profile image
Carlos Campos • Edited

Yes, Symfony is not king, but I love it for what I need. And yes! Swoole and Workerman is faster than Fastify and Symfony

And as I say you are right, in almost everything. But it's not my use of case, or you don't know that there are shit websites made in Wordpress with more traffic than any other microservice-oriented page(10 people programmed microservices in different languages) .

Example: css-tricks.com/

Hey, but I don't defend Wordpress, it's fucking bullshit. But as I say, it depends on the case.

Thread Thread
 
jcarlosweb profile image
Carlos Campos • Edited

Edit:

Also, thank you very much for all the information, I hope one day to work with Kubernetes and oriented microservices, and I hope never to leave aside PHP, And of course that Symfony becomes something faster comparable to Wokerman or Swoole, so that I do not have to learn more things.