by kevdoran · 1y ago · 0 comments
"Use this other language I know for the backend, it's the [reliable car model]. It's the {Latin, Swahili, English} of the programming world. It's JVM, it's PHP, it's Python, it's Ruby, it's C#'"
I feel that after a decade of jumping between systems, TypeScript is now the "good enough" language. We have to use it on the client. Now we can use it on the server.
The weird side-projects vibes node libraries had in the 2010's have matured into fully supported production systems in the 2020s.
And I've never been happier. It's a fine choice for the backend, and it's not really optional on the frontend. Which is important: like a lingua franca, TS/JS is not optional in a web app. This is not an attribute which PHP shares.
And PHP is much easier to read and handle when the project gets larger. And more secure, as you aren't forced to rely on all these NPM packages (we use Composer, but nothing like the way we used NPM. PHP really comes with almost anything you need built in - and even if you use Laravel its still not a pyramid).
I have read through all the comments, and I really don't get it - I use Node and PHP a lot, and quite a bit of Python. Not to much experience with Go or Rust, but some with Java.
IMO, There is nothing that competes with PHP in speed, security (for web stuff at least), or ease of writing for the web.
Most people will tell you to use pm2 to start copies of the server. Well pm2 looks like a hack cobled together. And pm2 has conflict of interest with their paid pm2 server. There's incentive to keep pm2 free version limited.
Other's will tell you to use many docker containers. Seems a bit overkill for some applications.
Why can't it have a simple, mature, built-in multi-threaded server like .NET Kestrel or Go http?