views:

1073

answers:

6

hi gurus!

I'm using php for the last 6 months and i can pretty much do anything with it. But BIG websites like Facebook and Twitter doesn't appear to use php. I wanna know what languages they use and why they chose that language over php.

Is Ruby on Rails a good language to build robust and big websites? I've seen RoR's video on youtube mocking other frameworks and languages. Is it really awesome?

+8  A: 

twitter is built on Ruby on Rails

facebook uses PHP primarily, but also relies on "C++, Java, Python and Erlang" -- http://en.wikipedia.org/wiki/Facebook#Server_infrastructure

yes RoR is awesome and should be used for large websites

davidosomething
Why the -1? He answered the question succinctly. Except for that third line editorial opinion, but we can ignore that.
Karl
+10  A: 

It began its life as a Ruby on Rails application, and still uses Ruby on Rails to deliver most user-facing web pages. But about a year ago they started replacing some of the back-end Ruby services with applications running on the JVM and written in Scala

Facebook’s technology stack consists of applications written in many languages, including PHP, C, C++, Erlang and others.

S.Mark
+1  A: 

Large website optimization is typically a matter of how you optimize database queries.

In terms of the language itself, you can always run PHP on more computers as they become saturated. Their isn't really anything that prevents PHP from working on large websites, it is more about the type of code that you are comfortable using.

And yes, I think Ruby/Python produces better code, but in the end, any code can be made to look horrible and run slowly.

Bear
+4  A: 

At this point Twitter mostly runs on Scala (though with some Ruby on Rails thrown in) (cite).

Facebook runs mostly PHP, but also uses some C++, Java, Python and Erlang on the back-end (cite).

fiXedd
+2  A: 

I would say that this depend on how familiar are you with the language. Any language can be use to build robust and big websites

imnd
A: 

twitter actually uses scala now

Jeanre Swanepoel
Only for part of the site. They still use RoR for a lot of it.
thebackhand