4 ms·
Decorators are more than simple syntactic sugar in Python ;) It seems overly critical, but still funny (the Haskell one is probably the most spot on) And afte
by raverbashing 12y ago
Decorators are more than simple syntactic sugar in Python ;)
It seems overly critical, but still funny (the Haskell one is probably the most spot on)
And after all, Facebook uses PHP and MySql
- amirmc 12y agoSure, FB uses PHP but it's also very interesting to see how they've created things like Hack and Flow (built using OCaml, iirc) to improve the quality of their code.
- frostmatthew 12y ago> Facebook uses PHP This is the common rebuttal of PHP jokes - but pointing to a sole outlier is rarely a solid defense. Especially when they have created Hack[1] and HHVM[2]. So it's not entirely accurate to say they "use PHP." [1] https://en.wikipedia.org/wiki/Hack_(programming_language) https://en.wikipedia.org/wiki/Hack_(programming_language) [2] https://en.wikipedia.org/wiki/HipHop_Virtual_Machine https://en.wikipedia.org/wiki/HipHop_Virtual_Machine
- raverbashing 12y agoSure, they created those tools. But they grew on PHP. Those tools came to be after "a lot of time" And of course they're not the only site that uses PHP (see all the Wordpress installations, etc)
- aikah 12y agoHHVM language is PHP,Hack is a spinoff of PHP. So yeah,they basically use PHP. HHVM is a different implementation,while Hack is a superset. Now why,with the tons of money they have,they chosed to stick with it,I dont know. But it's 100% accurate to say they have some PHP code powering their website. But I bet they have as much java code deployed,and next to none haskell.
- frostmatthew 12y ago> Hack is a spinoff of PHP. So yeah,they basically use PHP. That's like saying applications written in C++ are "basically C" or Groovy is "basically Java."
- krapp 12y agoFacebook choosing to improve upon PHP is still, arguably, a (weak) argument for PHP as a language which is, at least, worth improving upon. Given their money and resources, they could have chosen to abandon it entirely, but they didn't. Maybe a more accurate form of this argument would be "Facebook still doesn't entirely hate PHP." And even so, there are obviously plenty of sites, and even startups, using PHP, but facebook seems to be the goto for PHP advocacy in sort of the same way that a certain ranty blog post is for its detractors, neither of which really requires much effort to employ, or counter.
- scrollaway 12y ago> Facebook choosing to improve upon PHP is still, arguably, a (weak) argument for PHP as a language which is, at least, worth improving upon. Or you can look at it another way: Facebook regretted their decision and PHP potentially made the switch to a different platform so hard that they were forced to improve the language, rather than leave. Don't forget that companies need to be able to justify the cost of moving from one platform to another. When you're employing people whose skillset is potentially limited, that's not always possible.
- krapp 12y agoThat's possible, although i'd expect a company with Facebook's resources to be able to justify a move more easily than others, if PHP turned out to be a bad enough decision to really matter. It's still one of the names practically anyone would want on their resume, so they wouldn't exactly be unable to find developers in any language they chose.
- scrollaway 12y agoYou're severely underestimating how much lock-in there is to a platform once you choose it for a product and your entire company is built around that one product. The amount of effort needed to rewrite Facebook is insane. To rebuild the entire site, migrate the data, ensure everything is seamless to the users, fire all the now-useless employees and replace the workforce (with all its own re-training costs)... A company like Google can gradually phase out languages they use in favour of others because they can prototype things in new languages in other products they own (Think Dart and Go). A one-website shop just does not have that option.
- coldtea 12y ago>This is the common rebuttal of PHP jokes - but pointing to a sole outlier is rarely a solid defense. Sole outlier? Hardly. Half of the web is powered by PHP, including tons of websites with huge traffic and usage. >Especially when they have created Hack[1] and HHVM[2]. So it's not entirely accurate to say they "use PHP." Hack and HHVM do not show some inherent PHP issue that something like Ruby or Python would not have. Hack is mostly an attempt to add type checking/hinting to PHP. The lack of type checking would be the same if they used Python or Ruby or Node+JS or whatever. And HHVM is an attempt at a speedup, to work at Facebook like economies of scale. Considering that plain PHP is on par speedwise with Ruby and Python, that's again not something that would be saved using those other languages. Which is why Google tried to do Unladded Swallow (for Python), Dropbox does their own thing, RoR companies invest hard on speeding up Ruby/Rails, etc. TL;DR: Hack and HHVM may be proofs of some lack in PHP for Facebook uses, but are not proofs of PHP lacking things compared to other similar languages like Python and Ruby.
- yawboakye 12y ago> Half of the web is powered by PHP, including tons of websites with huge traffic and usage. What powers the web: web servers or web sites/applications? If it's web servers then your claim that half of the web is powered by PHP is false because I'm—and I'm going to be honest here—yet to see/use a web server written in PHP.
- cstrahan 12y agoI don't think that's a fair interpretation of what was meant by that quote. I think the point was that PHP has been used to great effect, regardless of what shortcoming it may have.
- coldtea 12y agoObviously web sites/applications. Web servers would just server static sets of pages without some means to run dynamic code.
- yawboakye 12y ago
- donatj 12y agoLol, Wikipedia which you linked to is PHP. Roughly half the web runs on Wordpress for crying out loud.
- hueving 12y agoMy town is full of meth addicts, it must be okay!
- deleted 12y ago[deleted]
- aikah 12y agothey are obviously not the majority of the people living in your town.
- frostmatthew 12y agoI admitted in another comment[1] that I shouldn't have said sole outlier. But I find it surprising you're defending PHP if you feel popularity of a language is determined primarily by how well designed it is, as by that logic C and Java are way better than PHP.[2] [1] https://news.ycombinator.com/item?id=8803088 https://news.ycombinator.com/item?id=8803088 [2] http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html http://www.tiobe.com/index.php/content/paperinfo/tpci/index....
- cstrahan 12y ago> And after all, Facebook uses PHP and MySql And Haskell: https://code.facebook.com/posts/302060973291128/open-sourcing-haxl-a-library-for-haskell/ https://code.facebook.com/posts/302060973291128/open-sourcin...
- hnriot 12y agoPHP is just a language that so many of the so called programmers here like to bash. I doubt many have even used it, they take a quick look at the hello world and just write it off. But in reality, the language makes so little difference to most projects, it's more about the ecosystem, the jars for java, the packages for python, these are what propel a language to productivity highs. Imagine python without BeautifulSoup or numpy or scipy or any of a hundred packages I use daily. Imagine Java/scala without Mahout etc etc. The actual syntax is almost irrelevant to anyone that can articulate good software design in code. It's like giving a pencil to Picasso and suddenly implying anything he draws will be shit just because he's not using paint. Utterly ridiculous arguments by the pseudo intellectuals here trying to convince themselves how smart they are for using Haskell. Meanwhile, real software developers just get on with writing good clean code in whatever language they want.