Ruby-on-rails 推特和脸书使用什么语言?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2130651/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 22:12:09  来源:igfitidea点击:

What languages do twitter and facebook use?

ruby-on-railsfacebooktwitter

提问by jest

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 don't appear to use php. I want to know what languages they use and whythey chose that language over php.

过去 6 个月我一直在使用 php,我几乎可以用它做任何事情。但是像 Facebook 和 Twitter 这样的大网站似乎并不使用 php。我想知道他们使用什么语言以及为什么他们选择该语言而不是 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?

Ruby on Rails 是构建健壮的大型网站的好语言吗?我在 youtube 上看过 RoR 的视频,嘲笑其他框架和语言。真的很棒吗?

回答by YOU

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

它最初是作为一个 Ruby on Rails 应用程序而诞生的,并且仍然使用 Ruby on Rails 来提供大多数面向用户的网页。但大约一年前,他们开始用在 JVM 上运行并用 Scala 编写的应用程序替换一些后端 Ruby 服务

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

Facebook 的技术栈由用多种语言编写的应用程序组成,包括 PHP、C、C++、Erlang 等。

回答by davidosomething

twitter is built on Ruby on Rails

twitter 是建立在 Ruby on Rails 之上的

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

facebook 主要使用 PHP,但也依赖于“C++、Java、Python 和 Erlang”——http: //en.wikipedia.org/wiki/Facebook#Server_infrastructure

回答by Jeremy Logan

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

在这一点上,Twitter 主要在 Scala 上运行(尽管加入了一些 Ruby on Rails)(cite)。

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

Facebook 主要运行 PHP,但也在后端使用一些 C++、Java、Python 和 Erlang(cite)。

回答by Andy

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

我会说这取决于您对语言的熟悉程度。任何语言都可以用来构建强大的大型网站

回答by Bear

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.

就语言本身而言,您总是可以在更多计算机上运行 PHP,因为它们变得饱和。它们并不是真正阻止 PHP 在大型网站上工作的任何东西,它更多地是关于您习惯使用的代码类型。

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

是的,我认为 Ruby/Python 可以生成更好的代码,但最终,任何代码都可能看起来很糟糕并且运行缓慢。

回答by Jeanre Swanepoel

twitter actually uses scala now

twitter 现在实际上使用 scala

回答by Yasir Shabbir Choudhary

Actually Twitter currently use many programming language(C++, Java, Scala, Ruby on Rails)on server side similarly like other web application like facebook use Hack, PHP, C++, Java, Python, Erlang, D Xhp.

实际上 Twitter 目前在服务器端使用许多编程语言(C++、Java、Scala、Ruby on Rails),与其他 Web 应用程序(如 facebook)使用 Hack、PHP、C++、Java、Python、Erlang、D Xhp 类似。

Here is detail and updated Link

这是详细信息和更新的链接