logoalt Hacker News

chuckadamstoday at 1:08 AM2 repliesview on HN

It was never any kind of official extension, it was an outright fork of PHP (it changed the grammar) and FB never really attempted to push it to core, or really engage with PHP's core dev process in any way. PHP came about in the era of server-side includes, and expecting it to have grokked the DOM structure out of the box is just hindsight.

Anyway, I don't even think about server-side rendering anymore, and for the last few days have had Claude "shitting out" Vue components that replace legacy Bootstrap 3 components with html5 alternatives for my PHP app to use via Inertia.js. The axe-grinding is not helpful to either of us.


Replies

hparadiztoday at 1:37 AM

Lol to true. Who even uses twig or smarty anymore hesitantly raises hand

krapptoday at 2:34 AM

> PHP came about in the era of server-side includes, and expecting it to have grokked the DOM structure out of the box is just hindsight.

Obviously not from the beginning. But by the time template frameworks like Twig came around it should have been possible. If it can be done at runtime it's possible to build into the language proper. And I'm specifically talking about the time when PHP 7 started taking other features from Hack.

I'm not grinding an axe here, i'm just stating an opinion.