Who is online? 131 guests and 0 members
Member login | Become a member
home » blogs » vivek_iit » ASP.NET vs PHP
posted 12/1/2008 by vivek_iit
*************************************
Update: The test below shows interesting results:
http://misfitgeek.com/blog/aspnet/php-versus-asp-net-ndash-windows-versus-linux-ndash-who-rsquo-s-the-fastest/
"Yes, ASP.NET is universally faster than PHP (on Windows and on Linux) with the exceptions of File Copy and Attribute operations."
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. My fellow "PHP friend" argued otherwise, and says that PHP has evolved a lot since its inception, but when I showed him what ASP.NET can do with VS (with options like partial classes) he was amazed and agreed that ASP.NET is definitely a step ahead when compared to PHP in terms of being more "flexible". 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 (even though bad programming can lead to hacks in any framework based app) 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 slightly faster than PHP (when we talk of large scale apps) 10. ASP.NET will cost less in terms of hardware to support and scale an application.
11. ASP.NET is "free" just like PHP and there is no considerable difference between hosting costs these days. 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 so I know PHP too. I do agree that the choice of platform is guided by a lot of external factors and with right skill set and tech know-how, developers can create great applications in either platform. But still I feel that the ASP.NET is "more comfortable".
vivek_iit (Member since: 11/27/2008) I am one of the administrators at CodeAsp.Net and I love programming, architecting solutions, code reviews, teaching and writing about ASP.NET.
View vivek_iit 's profile
Comment (No HTML)
It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.
enter your email address: