Wednesday, 28 December 2011

Which Language is the Best to Learn, PHP, Or ASP.NET?

There's been a lot of discussion about this topic and I guess everyone have different opinions about it. I am a full-time freelance developer and do projects with PHP and ASP.NET so I may have a more neutral opinion about the two.

In the old days if you asked me to compare PHP and ASP, I would have said PHP without any hesitation. ASP was cumbersome to me with way too much overhead and lacked the OOP aspect. But these days with the newer.NET frameworks it's much harder to make up my mind.

Both languages have their own pro's and con's. I come from a C++ background and writing code with C# and PHP both give me a lot of satisfaction, so on the style and object oriented coding level they are both on equal ground for me. I know ASP.NET has much better OOP support, but for what I need and the projects I do, PHP is fine. Without comparing too much low level differences between the two engines.

The things that stand out most about PHP are:

    * Platform Independence - And yes, I know there's the mono framework that supposedly makes ASP.NET independent. Well in my opinion, if it was not natively build to be platform independent then it's not. I don't like hacks to make things work.
    * Easy Deployment - I've never once, deployed and ASP.NET application from a dev environment to a live environment without any issues. With PHP it's almost always flawless.
    * An Abundance of Resources - You always find answers to questions, problems and third party classes to do things much easier than with.NET resources. Due to the open source nature of PHP development.


The things on the other end that I like more about ASP.NET development:

    * Access to the.NET Framework (CLR) - The libraries has everything you need built-in. There's no need to download a class to do nicely formatted emailing or encryption, it's all there.
    * Better UI controls out of the box - The grid components make it quick and easy to slap together a data viewing or editing screens. I suppose with add-ons to PHP like jQuery the same can be achieved.
    * Good Debugging Support - I am using Nusphere's PhpED for development and it comes close with its debugging functionality, but nothing beats Visual Studio's debugging support.


So which one do I choose?

Well, if I were new to web development and had to choose. I'd choose PHP. But I would also invest the time to learn ASP.NET in C# of course, not VB.NET.

I'll continue to support both languages in my business. There are times when PHP is more suitable and others when ASP.NET makes more sense. A lot of my Government work also requires ASP.NET because of their licensing agreements with Microsoft. So it makes sense to learn both.

Article Source: http://EzineArticles.com/3501803

5 comments:

  1. Nice blog and very informative post, 9itech also provide all such type of training including .net certification in Chandigarh, interesting students can contact them.

    ReplyDelete
  2. Hi friends,
    I have been searching for this information and finally found it. Thanks!

    internet la rochelle

    ReplyDelete
  3. Hi Dear...
    Nice blog and I prefer php. It is simple and easy to code.
    My institute is also providing php training with all others languages.
    We are providing Industrial Training in Chandigarh. So if you living in chandigarh and want to do something what you just thinking so come across with us. Get training with us on very live projects.

    ReplyDelete
  4. That's interesting! Can you please share more about it? Thank you.


    PHP Training in Chennai

    ReplyDelete