Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Facebook use PHP instead of ASP.NET MVC? [closed]

In every comparison between these two languages, ASP is recommended for "serious" web projects, so why does Facebook use PHP? PHP can't hold persistent database connections and in case of Facebook, I think this would slow down the application. Or am I wrong?

For example: Speed of code execution: ASP.NET-MVC versus PHP

I found that they use PHP because Mark Zuckerberg developed the first version of Facebook in PHP and a change would cost to much afford and money. But assumed Facebook started today, would it be intelligent to use ASP.NET instead of PHP?

like image 525
DevTec Avatar asked Feb 07 '15 09:02

DevTec


People also ask

Why does Facebook still use PHP?

Facebook still uses PHP, but it has built a compiler for it so it can be turned into native code on its web servers, thus boosting performance. Facebook uses Linux, but has optimized it for its own purposes (especially in terms of network throughput).

What are the advantages of using PHP over ASP?

PHP shows a visible difference in the cost metric in comparison with ASP.NET. PHP being an open source and free platform, it gets compatible with Windows, Mac, and Linux. Along with that, PostgreSQL server, MySQL server, Apache server, and Linux OS are also free of cost.

Is Facebook still built on PHP?

Facebook use their own version of PHP called HHVM (HipHop Virtual Machine ) they also use C++ and D Language.

Is ASP better than PHP?

ASP.NET is better suited for large and medium-sized organizations, whereas PHP is better equipped to serve start-up and small-sized organizations. ASP.NET being paid has a decent market share in the IT world, whereas PHP is open source and is freely available to the developers with a higher market share than ASP.NET.


2 Answers

As far as I know, The creators of facebook knew PHP and not ASP.NET, but I could be wrong here.

like image 43
Goudgeld1 Avatar answered Oct 23 '22 04:10

Goudgeld1


Because the original version of Facebook was an open source project.

Facebook project was one of Mark Zuckerberg's university assignments, and he had to do it with an open source project.

Except asp.net, other web programming languages are hard to learn or not fast enough.

If you compare PHP with other web programming languages (as I said except asp.net) it's more reasonable.

And as you said if he want to switch to Asp.net it have a lot of cost for Facebook.

like image 62
salar Avatar answered Oct 23 '22 02:10

salar