Vivek Thakur

Chaotically Complex

  Home  |   Contact  |   Syndication    |   Login
  102 Posts | 1 Stories | 258 Comments | 66 Trackbacks

News



Archives

Which is better for scalable commercial applications: ASP.NET or PHP?

This question has been raised so many times with my different clients tempting me to know how other fellow programmers feel on this issue. This is what I think:

1. ASP.NET being object oriented is more "organized" and maintainable than scripted PHP. Besides being fully compiled, ASP.NET platform offers loads of pure OO features like inheritance, polymorphism, overloading etc. Newer versions of PHP support OOP but its very limited compared to ASP.NET.

2. Development in ASP.NET is becoming more and more faster thanks to integrated VS environment, great debugging support and a lot of out-of-the-box controls.

3. Framework Class Library (FCL) is a huge asset compared to PHPs libraries.

4. PHP is more hackable than ASP.NET.

5. PHP promotes messy code and has poor error handling capabilites.

6. ASP.NET offers more powerful features to control entire HTTP pipeline in its different stages using HttpModules and HttpHandlers.

7. ASP.NET offers different methods to store session data.

8. ASP.NET is more scalable than PHP.

9. ASP.NET is more faster than PHP.

10. ASP.NET will cost less in terms of hardware to support and scale an application.


I would like to know what others think ! Let me know if you think I am wrong somewhere! I have programmed in PHP years back and I know PHP too!
posted on Wednesday, July 02, 2008 12:42 AM

Feedback

# re: ASP.NET vs PHP 7/2/2008 6:03 AM Glenn
I totally agree. All of the proponents of PHP that I've ever met support PHP because they have some kind of altruistic beef with Microsoft and/or because they know very little about .NET - never basing their judgements just on the merits of each platform. Few developers really have a deep understanding of .NET, which is an extraordinarily deep and complex platform. Comparing PHP to ASP.NET is like comparing the broadsword to the AK47.

I suppose they both get the job done, but...

# re: ASP.NET vs PHP 7/3/2008 10:39 PM Bob
more faster?

# re: ASP.NET vs PHP 7/3/2008 10:43 PM Bob
I'm working on ASP.Net for a long time now. In a nutshell, whichever technology gives you faster results to satisfy the needs is the one you should go with. For basic/static/simple sites, PHP is great as you can see a millions of sites are using PHP till date. There's nothing wrong with it. The hardware is cheap for those sites, dirt cheap.

On the biased side, I like MS technologies, just like that. ;)

# re: ASP.NET vs PHP 7/16/2008 3:23 PM Souvik Das
dtert

# re: ASP.NET vs PHP 7/16/2008 3:28 PM Souvik Das
I dont think as far as the hrdware is concerned ASP.NET cost less than PHP.Go to any hosting site and see the cost of hosting of an ASP.NET site compared to a PHP site.
I also found PHP sites are fatser than ASP.NET site.

# re: ASP.NET vs PHP 7/17/2008 5:48 AM Vivek Thakur
Simple hosting site prices are not an indicator. The basic hosing price is low just because Windows OS is more costly than Linux.

But here I am talking about medium to big applications, where PHP fails miserably. PHP needs more processing power than ASP.NET when we talk about mide-large size commercial applications. A lot of my clients noticed this cost reduction when the converted from PHP to ASP.NET!

And do a simple test, if the hardware is same then PHP is slower than ASP.NET because PHP is a scripted language unlike compiled ASP.NET applications. It will be slower by default.

# re: ASP.NET vs PHP 8/18/2008 8:18 PM jason baisden

I see what you guys are saying, but why is it that some of the really huge sites are done in php? Aren't FaceBook and MySpace both php? I could be wrong, and please correct me if I am....

I've also seen many banking sites in php as well. Granted Wachovia is one of the few large scale sites that I've seen use ASP .NET. Furthermore, it worked extremely well for them too.



# re: ASP.NET vs PHP 8/18/2008 8:50 PM Vivek Thakur
MySpace was in ColfFusion, but they converted the entire website to ASP.NET because they were facing a lot of issues. With ASP.NET they got good performance improvements and reduced hardware hosting costs by a decent margin (some pages still have .cfm extension but they hit the ASP.NET runtime process).

Facebook is having a lot of issues with PHP: source code leaks, slow site performance and exponentially increasing hard ware costs. PHP was not made to serve such large users, but facebook grew so fast that they never got time to convert it to any other bette platform. Last year Facebooks revenues dipped because of ever increasing hardware needed to support such a huge site. Microsoft has invested in FB and now it is helping them to make it better.

Vivek

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 2 and 2 and type the answer here: