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!