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?
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).
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.
Facebook use their own version of PHP called HHVM (HipHop Virtual Machine ) they also use C++ and D Language.
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.
As far as I know, The creators of facebook knew PHP and not ASP.NET, but I could be wrong here.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With