5 ms·
Yes. Perhaps also brilliant engineers don't want to hack together something half-assed that barely works, but does provide the feature. I've always liked that
by hyperpallium 9y ago
Yes. Perhaps also brilliant engineers don't want to hack together something half-assed that barely works, but does provide the feature.
I've always liked that youtube uses PHP - much derided, but its declarative "templating" is the easiest, simplest, most direct way to generate html. Maybe that was a factor too.
But I think the youtube engineers might have a more accurate opinion on why they were quicker, than the google video engineers.
- joshuamorton 9y agoYouTube doesn't use php.
- hyperpallium 9y agoI shouldn't have said "uses", but "used". I can't find a reference, but IIRC they used it around the time of the acquisition.
- deleted 9y ago[deleted]
- grzm 9y ago> but its declarative "templating" Do you have any insight onto how much of the templating aspect of PHP is used at Youtube? I know of some large PHP installations where PHP is used as a general programming language that does produce web pages, but the templating aspect of PHP is pretty much minimal, and other engines actually produce the final output.
- DonHopkins 9y agoFor a so-called templating language, PHP sure falls short, and thus has a plethora of ad-hoc, informally-specified, bug-ridden, slow implementations of half of many other templating languages implemented in it. https://www.smarty.net/ https://www.smarty.net/ https://en.wikipedia.org/wiki/Wikipedia:Templates https://en.wikipedia.org/wiki/Wikipedia:Templates https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
- codedokode 9y agoSmarty is something from 15 years ago. Nowadays people use Twig which is inspired by Python's Jinja template engine and has similar syntax.
- DonHopkins 9y agoYet Python has never claimed to be a templating language itself, let alone "the easiest, simplest, most direct way to generate html". My point is that PHP pretends to be a templating language, then falls flat on its face, so people end up implementing much worse (Smarty, MediaWiki) or sometimes even better (Twig) templating languages on top of it. In other words, it's simply not true that PHP's "declarative "templating" is the easiest, simplest, most direct way to generate html", or there wouldn't be a need for Smarty, the MediaWiki abomination (which is 17 years old but still widely used on 29 million pages), or Twig. I'd say "to hack together something half-assed that barely works, but does provide the feature" perfectly describes the PHP development process itself.
- petters 9y ago> I've always liked that youtube uses PHP Perhaps you are thinking of Facebook?