Hacker News new | ask | show | jobs
by ransom1538 2028 days ago
Long live PHP.

15 years of PHP dev work. Games, mobile apps, health care, etc. I have been unemployed for 2 days in 15 years. PHP runs %80 of the internet. Talk to anyone at facebook that wears a suit on friday -- they code PHP (and it seems to scale for them). I think I will be 90 years old hacking on PHP.If you really don't like how the arguments are passed just use an IDE. Or get stuck with real problems like a transition from python2 to 3. (wtf)

4 comments

"Use an IDE" is never an answer to shitty language design. Shitty language design is shitty language design. That said, I cut my teeth on PHP and still have a fondness for it. It's especially great being able to deploy small little backend-driven pages with rsync or sftp in a pinch. I just discovered other languages and environments I enjoyed working in much better.
If there's room for Javascript, there's room for PHP. Both are sloppy, inferior languages, but both can do anything you need. And unfortunately, both have immense momentum from being first in the web game.
It's worth pointing out back end JavaScript didn't really start to take off until the 0.x versions of NodeJS came out
> If there's room for Javascript, there's room for PHP.

PHP doesn't run in the browser. For browser programming there's literally almost no choice. TypeScript seems to be an improvement but even that compiles down to JS. Same for ReasonML and BuckleScript and Elm.

My point is that both PHP and Javascript owe their popularity not due to their merits as languages, but rather to being in the right place at the right time - time and positioning.
Yeah, sadly this is true. Inertia is a much bigger motivator than merit for many. I still struggle accepting that as a life philosophy.
Unlike php, I can see Javascript slowly disappearing thanks to Wasm.
Ha, I was going to make a comment along these lines. I didn't mention the languages I enjoy over PHP but I can assure you JavaScript ain't one of them. I don't hate JS but as a server-side language I would pick PHP over it any day.
I'm old enough to remember GoPHP5 and the shit storm that transition was

Kinda funny having php devs shit on python backwards-compat

Argument order problems are somewhat over with named params: https://php.watch/versions/8.0/named-parameters
80%? Of what?