Feature | .Net | PHP |
Compiled Code – Increases website speed (precompiled is the fastest) | Yes – both precompiled and dynamically compiled when a page is requested | No – a 3rd party accelerator can be used to increase performance but it is not installed on most shared hosting servers. |
Scripted Language – results in poor website performance | No | Yes – a 3rd party accelerator can be used to increase performance but it is not installed on most shared hosting servers. |
Object Oriented – Increases the ability for code reuse and provides enhanced features as well as reduced development time; since code is more reusable, results in fewer bugs that can be discovered by any client and fixed for everyone; encourages developers to write more maintainable code. | Yes | No |
Supported Development Languages – easier to find developers | C++, C#, Visual Basic.NET, Jscript.NET, Python, Perl, Java (J#), COBOL, Eiffel, Delphi – 25 languages supported currently | PHP |
Browser Specific HTML Rendering – different HTML is automatically sent to IE than to Netscape, reducing incompatibility issues | Yes | No |
Open Source | No | Yes |
Any comments you guys ..!!
-001+copy.jpg)
3 comments:
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."
Net is a FRAMEWORK, not a language. therefore the above point is only half true, and still debatable at that :-)
The OO features of the PHP are indeed less robust than C# (the language most often used with ASP.NET - at least among the devs i know) or Java for instance. However, the basic concepts are incorporated into the language - as much as can be done with a dynamically typed language. Having said that, PHP itself doesnt promote unorganized or hard to maintain code... Thats the developers problem. In fact, anyone working on a large project is using a framework if the are in thier right mind - whether that be something home rolled or one of the publically available ones (ie. Cake, Symfony, CodeIgniter, etc..). If youre going to compare you really need to compare ASP.NET to PHP in combination with a framework.
In terms of scaleability in most cases this has little to do with the language, but rather how the application was developed. Its entirely possible to make an unscalable .Net app jsut as it is entirely Possible to make a robust PHP application.
As for some of the examples in the comments:
Actually MySpace had issues because it was developed POORLY, not because it ran under ColdFusion. 'exaggeration'Not to mention any time the project lead changed the language changed '/exaggeration so so there were some components written in CF, some in PHP, and some in .NET (while FuseBox was used as a cross language framework). I know this because I had a buddy that worked at the firm that actually maintained the application.
In terms of FB... They actually use their own custom version of PHP and have a team devoted to revising the PHP internals (the C/C++ core) as needed, so thats not really that good of a comparison. (although you would think if anything, it would be better than the stock version of php - who knows!?)
Also, Yahoo is using PHP for Delicious, and i beleive Yahoo Answers. In fact for Delicious they are using the Symfony framework.
In terms of google - its mostly Python.
-bitpshr
i think ASP.NET is the Best for rapid application development Only.PHP Java are good for secure systems.
Thanks for your comments...
Post a Comment