Friday, July 4, 2008

PHP vs. ASP - which is better?

Obviously ASP is no longer being developed by Microsoft, which was a strange decision on their part. Instead of giving programmers and developers a nice, simple language, of which to "compliment" their HTML code (like PHP) - they took that freedom away.
So, these days, you either have to use a full-bloated framework, like ASP.NET; use an out-dated language like ASP; or you just don’t develop web sites with a Microsoft technology.
I have nothing wrong with Microsoft technologies - it’s just they always want to "tie you down," and make you completely rely on their products - and only their products. As if the future will always consist of Microsoft.
PHP is open-source, free, and contains 10 times the amount of resources (on the web) than ASP does. PHP is continually updated with newer versions, and it has many extensions (like
PEAR) that make it a very appealing language. It also runs on almost every OS imaginable. Ever run ASP on Linux? I doubt it.
As far as the "nuts and bolts," if you have a basic understanding of programming principles, either language will do.
As far as syntax and style of each language - there is truly no "major" difference. You got variables, functions, arrays, conditional statements, etc. The components and tools are the same.
If you can visualize what you want to do - it’s just a matter of finding the right keywords to use.
Whereas (off the top of my head), I am more efficient with PHP - that’s only because I’ve come to memorize many keywords.
ASP requires me to lookup stuff, but only because I don’t know the specific keyword used.