Hacker News new | ask | show | jobs
by nsonha 1759 days ago
nah it's hated because it's such a crap language, I'm sure they piled enough stuff on it for 20y so now it's tolerable, but that doesn't change anything. PHP was originally "Hypertext Preprocessor", not even a programming language. You don't make a programming laguage as an after-thought.
1 comments

> You don't make a programming laguage as an after-thought.

Why not?

I thought programming languages was just a tool, a means to an end. If that is the case, which I believe it is, it shouldn't really matter in which way it is created.

I would pick a tool that's grown out of actual needs over some guy thinking in the basement for 20 years any day of the week. Because the first one will solve problems and the second most likely won't.

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
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.