4 ms·
"I really struggle to see what the case is for PHP anymore." PHP started as a language for creating dynamic websites and that's still it's forte. I'm not a fan
by open-source-ux 7y ago
"I really struggle to see what the case is for PHP anymore."
PHP started as a language for creating dynamic websites and that's still it's forte. I'm not a fan of the language, but it still retains advantages over it close rivals Python and Ruby when it comes to creating dynamic websites. It's faster than those languages, and its popularity means you can find web development libraries for just about anything.
It's also the only language with almost universal support amongst web hosts. It can run on basic shared hosting plans and on nearly every server. It can be deployed by simply uploading your code to a directory on your web host. Many developers (especially of other languages) vastly underestimate how important this is or the opportunities it unlocks.
It's 2019 and if you want a simple [1] way for your non-technical users or customers to self-install your software on a web server, you are simply out of luck.
Having a ridiculously easy web app installation process for servers would unlock countless opportunities for developers to reach more users or customers. But developers simply can't see it.
Isn't it kind-of crazy that web-friendly languages like Python and Ruby are anything but simple if you want to bundle and distribute your web app for easy server deployment?
By the way, here's an excerpt from a blog post by programmer Jeff Attwood:
"If you want to produce free-as-in-whatever code that runs on virtually every server in the world with zero friction or configuration hassles, PHP is damn near your only option. If that doesn't scare you, then check your pulse, because you might be dead."
To broaden choice, Attwood argues we should
"build compelling alternatives and make sure these alternatives are equally pervasive, as easy to set up and use as possible."
That was written in 2012 (https://blog.codinghorror.com/the-php-singularity/ https://blog.codinghorror.com/the-php-singularity/).
[1] Docker images / Cloudtron / Sandstrom / list of command line instructions - sorry, these don't count as simple.
- no_wizard 7y ago> It's faster than those languages, and its popularity means you can find web development libraries for just about anything. In reference to Python: Faster how? For non-trivial workloads, I have consistently found that pure Python is faster with async/await than PHP I have not tested django/flask but I imagine that holds up, especially when using gunicorn. For reference, these benchmarks seem to support my experience: https://github.com/the-benchmarker/web-frameworks https://github.com/the-benchmarker/web-frameworks