3 ms·
The problem is, the templating part is what PHP is bad at. That the programmer has to manually escape everything because PHP doesn't actually know what HTML is
by krapp 8y ago
The problem is, the templating part is what PHP is bad at.
That the programmer has to manually escape everything because PHP doesn't actually know what HTML is, or else find a templating framework that does it for them (like any other web-facing language), kind of demonstrates how badly PHP fails at its "one job".
PHP has a lot going for it, but HTML templating isn't one of its strong points.
On the upside, though, package management is sane and distributed by default, and left-pad wouldn't happen in PHP-land.