News for hackers. Stuff that matters.
Re:Using Python helped YouTube ship features faster than Goo... by hyperpallium on Monday March 26, 2018 @12:59AM (#16676719)
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.

Re:Using Python helped YouTube ship features faster than Goo... by petters on Monday March 26, 2018 @01:52AM (#16676907)
> I've always liked that youtube uses PHP

Perhaps you are thinking of Facebook?

Re:Using Python helped YouTube ship features faster than Goo... by grzm on Monday March 26, 2018 @01:06AM (#16676751)
> 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.

Re:Using Python helped YouTube ship features faster than Goo... by DonHopkins on Monday March 26, 2018 @04:40AM (#16677520)
For 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://en.wikipedia.org/wiki/Wikipedia:Templates

https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule

Re:Using Python helped YouTube ship features faster than Goo... by codedokode on Monday March 26, 2018 @05:52AM (#16677759)
Smarty is something from 15 years ago. Nowadays people use Twig which is inspired by Python's Jinja template engine and has similar syntax.
Re:Using Python helped YouTube ship features faster than Goo... by DonHopkins on Tuesday March 27, 2018 @04:20AM (#16686399)
Yet 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.

Re:Using Python helped YouTube ship features faster than Goo... by joshuamorton on Monday March 26, 2018 @01:30AM (#16676831)
YouTube doesn't use php.
Re:Using Python helped YouTube ship features faster than Goo... by hyperpallium on Monday March 26, 2018 @03:47AM (#16677321)
I shouldn't have said "uses", but "used". I can't find a reference, but IIRC they used it around the time of the acquisition.