←back to thread

432 points tosh | 1 comments | | HN request time: 0.001s | source
Show context
dools ◴[] No.39997831[source]
> GPT can write and edit code in most popular languages: python, javascript, typescript, html, css, etc.

I love how everyone always leaves PHP off these lists of "popular languages" despite the fact that 80% of the web runs on PHP.

replies(3): >>39997859 #>>39997918 #>>39998305 #
elromulous ◴[] No.39997859[source]
PHP has had enormous staying power despite its idiosyncrasies.

I would however be curious to know what percentage of the 80% (or so) is WordPress et al. Since those largely don't involve folks actually writing code. I suspect a very small amount of PHP code is being run a lot.

replies(3): >>39997969 #>>39998112 #>>39998127 #
1. noduerme ◴[] No.39997969[source]
PHP is still my go to for anything web-page based that's not a single page app. It's just a really nice solution for protoyping and making web quickly. I mean, custom stuff, not wordpress.

A lot of my successful projects have been rewritten later in nodejs. But for getting something up and running to test a concept, PHP is great if you're comfortable with its idiosyncracies.

I'd say Python is just as idiosyncratic, and its packaging system is just too much of a pain point. And Node doesn't ship with mature database interfaces, its dependencies are scary, there's more concern about runaway scripts, crashes are harder to recover from, and a lot of times all you really want from a router is to serve your file structure with some access rules.

I think PHP is still the best choice for prototyping dynamic HTML and logic fast, without any packages or plug-ins. A lotta times I still even use it for short CLI scripts and cron tasks that do database ops.