4 ms·
There is this part in there: > Are our tools just worse now? Was early 2000s PHP actually good? Not sure how rhetorical that was, but of course? PHP is a supe
by onli 1y ago
There is this part in there:
> Are our tools just worse now? Was early 2000s PHP actually good?
Not sure how rhetorical that was, but of course? PHP is a super efficient language that is tailor made to write dynamic web sites, unlike Go. The author mentions a couple of the features that made the original version easier to write and easier to maintain, they are made for the usecase, like $_GET.
And if something like a template engine is needed, like it will be if the project is a little bit bigger, then PHP supports that just fine.
> Max didn't need a request router, he just put his PHP file at the right place on the disk.
The tendency to abstract code away leads to complexity, while a real useful abstraction is about minimizing complexity. Here, the placement of PHP files makes stuff easier -> it's a good abstraction.
And that's why the original code is so much better.
- msteffen 1y agoIt still runs much of Facebook, I think
- theptip 1y agoOnly kind of, they have their own language (Hack) that descends from PHP. It’s JIT instead of interpreted, and breaks back-compat in a few ways.
- Szpadel 1y agophp is also jited nowadays. currently I believe the main advantage is that hack is async, you can fire multiple SQL/http requests in parallel and cut some wall time.
- theptip 1y ago> Max didn't need a request router, he just put his PHP file at the right place on the disk. This also elides a bit of complexity; if I assume I already have the Nginx and gunicorn process then my Python web server isn’t much worse. (Back in the day, LAMP stack used Apache.) I’ll for sure grant the templating and web serving language features though.