Hacker News new | ask | show | jobs
by nsonha 1758 days ago
because if you make a template engine and then oveload it with patches in order to make it behave like a general programming language, there is no way that can result in a cohesive thing that is effective for, say, financial transaction, which is something else completely different from what it was made for
1 comments

And yet php pretty much power most ecommerce sites in existance. Sure maybe it isn't good enough for a banking systems, the NASA rovers, life supporting systems or similar stuff. But it certainly good enough for most web apps.
webapps are not just glorified sets of templates do you know that, there is a lot of domain logic in there, as well as concurrency, transaction etc.

Yes PHP is very popular, so is Tiktok, if anything it's an indication of stupidity.

Yes and php can handle that just fine. In fact, phps concurrency model is IMHO better than many others since you will basically never have memory issues.

Sure storing state must be done in some other kind of tech like redis or similar, but what the hell it is still kind of awesome and scales really easily.

Also, when there is little traffic it basically does not consume any memory which makes it possible to run a lot of sites on the same machine. This is better for the environment and the wallet.

The funniest thing of all is that many languages are imitating php with serverless.

> many languages are imitating php with serverless.

just shut up

look this is really lame, the only thing I said in my original comment was that the hot language 20 ago, which happened to be PHP, is no longer hot today.

You could argue that PHP is a good language, good luck with that I guess.

However the point remains is that no one think PHP is a language of the future that they should invest their time into. Heck even the fad *after* PHP, Ruby, which people generally have positive view of, is dying.