I think its strength is its architecture, namely shared-nothing state and concurrency at the web-request level. [1]
I think its strength is its architecture, namely shared-nothing state and concurrency at the web-request level. [1]
xdebug, while it works, also feels antiquated. Trying to get it working in a new system or project can take quite a while. Again, compared to python or node's debugging experience or profiling experience, and it feels like something stuck out of the 90s.
Even just getting output from php is difficult for me. Maybe it's because of the webserver I'm using? But python, elixir, node, go, etc, all output logs to stdout while running a local service. Maybe that'd work with the built in webserver, but fpm or modphp, etc, it seems like you have to hunt down logs.
Not to mention that the dev servers almost always require a full apache or nginx setup just to function. Opposed to a node, elixir, python, or go server which all run directly from the directory you're in. (Including things like hot/auto reloading in node and elixir)
I'm not a full time php dev, but my time in php always feels like a grind, and just getting tooling working is not an easy thing. If I'm missing some state of the art alternatives, I'd love to hear them though.
What would you do if HHVM didn't even exist?
Admittedly PHP has had recent performance gains, but by no means would it ever be a first choice in any backend service architecture.
If you're referring to the Slack article, it is a bit out of date.
PHP has since added stronger typing and better performance. I don't think using HHVM is very popular.
> Admittedly PHP has had recent performance gains, but by no means would it ever be a first choice in any backend service architecture.
Other than at Yahoo, Facebook, ...
Don't get me wrong; PHP has issues. But it's very mature; it's fast; it's easy to learn; it has a very diverse and rich ecosystem; it's easy to debug; and in general, it's very useful for building reasonably efficient and performant scalable web services.
What would any of us do if some innovation never happened? How does Facebook committing heavily to PHP and then giving back in the form of performance enhancements somehow tar PHP as crap? What language or framework with any longevity didn't have something like that happen? Is Javascript crap if not for Typescript, or V8?
You may not make PHP your first choice but plenty of businesses and developers do. If you can point to some actual reasons no one should choose PHP, or widespread failures due solely to flaws in PHP, go ahead.