Re:Phan by Etsy – A Static Analyzer for PHP 7+
by dr_zoidberg on Tuesday December 08, 2015 @11:10AM
(#10697212)
PHP gets "so much love and money shoved at it" because, for a lot of problems, it's the right tool. You can always ask facebook about it.
[ Parent
| on HN ]
Re:Phan by Etsy – A Static Analyzer for PHP 7+
by lmm on Tuesday December 08, 2015 @11:51AM
(#10697564)
It wasn't the right tool for Facebook - Python would have been a better alternative, at least once they graduated from shared hosting. It was good enough that migration was never worthwhile, because the technology wasn't the innovative part of Facebook, but that doesn't make it good.
Re:Phan by Etsy – A Static Analyzer for PHP 7+
by dr_zoidberg on Tuesday December 08, 2015 @06:34PM
(#10700651)
Could you explain your point? Given it's success, I can't see why PHP wasn't the right tool for Facebook.
Re:Phan by Etsy – A Static Analyzer for PHP 7+
by lmm on Wednesday December 09, 2015 @05:24AM
(#10702881)
Just that Python is a better language for solving those kind of problems. I wrote a vaguely-facebook-like webapp in the same timeframe; later I worked (briefly) at last.fm (which uses, or at least used, the facebook stack) and spent most of my time working on better replacements for PHP code and issues that were caused primarily by PHP. If nothing else look at all the tools facebook produces - thrift and HHVM being the most prominent ones - to work around their PHP problems.
PHP was the "right tool" in that it was the language Zuck knew when it was a one-man project. And facebook's success is a reminder that second-tier technologies can be perfectly adequate to build a successful business on, that business concerns often have a lot more impact than technical ones. It shouldn't be taken as an indication that all their technical decisions were right.
Re:Phan by Etsy – A Static Analyzer for PHP 7+
by dr_zoidberg on Wednesday December 09, 2015 @08:49AM
(#10703524)
Thanks for the answer.
Re:Phan by Etsy – A Static Analyzer for PHP 7+
by vpkaihla on Tuesday December 08, 2015 @12:17PM
(#10697771)
No, the set of problems where PHP is the correct tool is rather small: 1) existing PHP codebase and 2) small webpages in need of little dynamism.
Re:Phan by Etsy – A Static Analyzer for PHP 7+
by jdhawk on Tuesday December 08, 2015 @01:39PM
(#10698369)
You're mistaking a language for a framework/library.
Re:Phan by Etsy – A Static Analyzer for PHP 7+
by marssaxman on Tuesday December 08, 2015 @03:27PM
(#10699211)
So does PHP.