Live data from Hacker News

PHP Popularity: Is it decreasing and what to do about it?

otsch.codes

51–60 of 166 posts

Re: PHP Popularity: Is it decreasing and what to do about it?

#51

Earlier quoted context omitted.

Java is very much in ascendence.

Even if there weren't any technical reasons not to use Java or better alternatives, the elephant (or lawnmower) in the room is Oracle.

Oracle's actually been a really good steward of Java, besides it's open source.

Re: PHP Popularity: Is it decreasing and what to do about it?

#52
post #5

Professionally I work with python and node a lot, but everytime I need a backend for my personal projects PHP is my go to language.

Would you like to elaborate your reasons?

It was the first server language I learned. I mean, i did know how to program in java, but i mostly wrote java applets.

I find php easy to write, i can get an API running with a few lines of code without any library, and I find it very easy to deploy.

Re: PHP Popularity: Is it decreasing and what to do about it?

#53
Meh, at this point it doesn't matter. There's so much (bad) php code out there that needs to be maintained, any person who learns to write good php has a job for life.

But I've always said that PHP's popularity was due to its availability on free hosting providers. However nowadays, you can get free hosting for a plethora of languages. So more competition, and also there are so many more languages that are competing for the backend nowadays.

Re: PHP Popularity: Is it decreasing and what to do about it?

#54

PHP has already been "rebranded". When people try to dunk on PHP for supposedly being awful, people are quick to point out that that's all from "pre-PHP 5.6" and that "PHP 7/8" are bringing all kinds of excellent features, functionalities, and refinements The author links to the person thinking that HypeScript is a good name. He says: "The name HypeScript sounds like a logical name for me, it pays its respect to the…

I thought PHP came from Personal Home Page(s).

Edit: Wikipedia says "PHP was originally an abbreviation of Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor."

Re: PHP Popularity: Is it decreasing and what to do about it?

#55
post #15

PHP has already been "rebranded". When people try to dunk on PHP for supposedly being awful, people are quick to point out that that's all from "pre-PHP 5.6" and that "PHP 7/8" are bringing all kinds of excellent features, functionalities, and refinements The author links to the person thinking that HypeScript is a good name. He says: "The name HypeScript sounds like a logical name for me, it pays its respect to the…

Did not read the article, but hyperscript already exists: https://hyperscript.org/

No, he suggested HypeScript, not HyperScript. That's the joke.

Re: PHP Popularity: Is it decreasing and what to do about it?

#56
post #45

Earlier quoted context omitted.

Even if there weren't any technical reasons not to use Java or better alternatives, the elephant (or lawnmower) in the room is Oracle.

C# is pretty good, but Visual Studio dependence is a crutch.

There is no Visual Studio dependency. The VS Code / editor experience is on par with most other languages and Rider is surely more than capable JetBrains based alternative

Re: PHP Popularity: Is it decreasing and what to do about it?

#57
post #28

Earlier quoted context omitted.

People always seem to come up with the argument that you can drop an index.php in a folder and be done with it. Only nobody uses php that way since decades. Modern php code uses Frameworks, Package mangers, opcode caching, and application servers. It’s just that other languages don’t carry all the cruft php has in its heritage…

The drop index.php into a folder is the only way I use PHP now. Back when I was building applications in PHP it was all frameworks. package managers, op code caching, etc. But I no longer do PHP development but for my own personal websites I still use PHP but in that most minimal form.

Exactly, if one is not developing PHP for the enterprise (maybe some non-enterprise simple projects still use opcodes though? lol), it's silly not to leverage index.php for all it's worth :-)

So where is the hyper-simple JS equivalent for that class of non-enterprise projects, is what I wonder...the enterprise stuff has always been heavy and loads projects down with maintenance debt.

Re: PHP Popularity: Is it decreasing and what to do about it?

#58
post #36

Earlier quoted context omitted.

What's the JS equivalent of "place an index.php file in a folder to deploy"? What's the JS FOSS equivalent of ProcessWire as a CMF + CMS? What's the JS equivalent to e.g. DreamHost and other drag + drop hosts? (Legitimately curious, and I'm mainly inquiring after equivalents-for...better-thans would definitely be interesting)

Oh that's easy - just install 10 insecure npm packages that each install another 10 npm packages (some of which are even maintained!) then make sure you remember to bundle it up in a nice, heavy electron wrapper. Then you're all ready to distribute it via some random App Store - just don't forget to charge a monthly subscription while you're at it. /s

Don't do this to me, I maintained one of these projects years ago, and am still somehow billed $0.30 a month for the privilege of the original dev having used Amazon tools for it :D

Re: PHP Popularity: Is it decreasing and what to do about it?

#59

Earlier quoted context omitted.

What's the JS equivalent of "place an index.php file in a folder to deploy"? What's the JS FOSS equivalent of ProcessWire as a CMF + CMS? What's the JS equivalent to e.g. DreamHost and other drag + drop hosts? (Legitimately curious, and I'm mainly inquiring after equivalents-for...better-thans would definitely be interesting)

Well "place an index.php file in a folder to deploy" is a lot of server (maybe Apache / PHP) running to support that. Node typically IS the server. So, you could install express and have a simple web server listening on a port and serving up html or json in about 5 lines of code. Unlike PHP Node is not, in itself, a templating language. So if you want to render HTML pages you'd also need to install something like EJS…

Thanks for the info!

> AWS, Azure, Google, CloudFlare, Digital Ocean, etc

I'm always curious to know if there are more casual options in this space, for non-earthshaking projects. Maybe more like how DO was at the beginning?

Re: PHP Popularity: Is it decreasing and what to do about it?

#60
post #36

Earlier quoted context omitted.

Oh that's easy - just install 10 insecure npm packages that each install another 10 npm packages (some of which are even maintained!) then make sure you remember to bundle it up in a nice, heavy electron wrapper. Then you're all ready to distribute it via some random App Store - just don't forget to charge a monthly subscription while you're at it. /s

Don't do this to me, I maintained one of these projects years ago, and am still somehow billed $0.30 a month for the privilege of the original dev having used Amazon tools for it :D

The pain is real! Speaking of Amazon - AWS CDK is promoting lots of terrible practises mostly built on barely supportable TS/JS, it's so... so terrible.
Post reply on HN