PHP Is the Best Choice for Long‑Term Business
tomasvotruba.com
tomasvotruba.com
> There are 544384348946349783246237946349732647 npm packages that need updated.
> There are 548432782344434 critical npm packages.
It's all about what works. My crazy opinion is PHP makes a great CLI, so does nodejs. Node has amazing frameworks, PHP is battle-hardened back-end wise but front end you're coming back to JS. I honestly hate what the JS bloated internet has become and enjoy PHP, but I also enjoy javscript.
Tons of apps are already electron bloated stuff; JS is in.
Use what works and what isn't going to break.
Be mindful of JS CDNS and supply chain attacks.
Keep things up to date. Fix them if they break.
It's basically a list of nice things going for PHP, but you can write that for literally any tech in any context — like, I could argue that you should build web sites with the Unity game engine or raw Python by listing out-of-context stats all day long.
Whenever the author actually compares, it breaks down:
- Ok, so Lavarel is from 2011 — React is from 2013, Django is from 2005...so what
- Sure, there may be a new js framework everyday, but not a new version of js...and anyway, an active and innovative community is automatically bad why?
- PHP has "2 strong framework players" — ok, so has Python, js has two to four...
- "lack of advanced technology" — what does this even mean?
Which is ok!
But unfortunately they're oftentimes also the type that believes that if they don't personally like something then no one else should like it, and if they do then they're wrong.
"Last but not least, other languages lack advanced technology."There's nothing wrong with choosing PHP, and also nothing wrong with other alternatives too.
Fortunately, many other frameworks are long-term stable, but also have a good programming language behind them. Django, Ruby on Rails, and there are similar options in Java or C#.
As for the other points, sure, PHP might be the one language where there are exactly two strong web frameworks. But I don’t see the problem of there being 3 or 4. Django has plenty of competition that drives innovation – web2py, flask, etc.
And same for those other claims. All major languages have various kinds of code analysis tools. Most have healthy communities, etc.
It doesn’t really matter which language you use, it’s about getting the job done. Some people can get thing done quicker in certain languages just because they are good at what they do, not because the tech stack is perfect.
This is an opinion masquerading as fact, backed up by terrible reasoning.
See https://docs.python.org/3.8/library/ast.html for example.