Earlier today I asked wether it would be a good idea to develop websites using C#. Most of the answers pointed towards .NET and ASP. Currently I develop with PHP. I’ve dabbled with Python and RoR but I always come back to PHP. This is the first time I’ve looked at .NET and ASP. A bucket load of Google searches later I’m not really seeing much support for ASP online but then it all seems a bit Biased towards PHP/Apache/MySQL.
It looks like there’s a fair amount of .NET and ASP folk around here so I figured it’s worth a shot asking for their input in attempt to try and address the balance in my own head. It can’t all be bad.
What advantages are there to .NET and ASP over PHP?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Used:
asp.net vs php site:stackoverflow.com
in Google search and got:
PHP MVC (symfony/Zend) vs ASP MVC vs Spring MVC vs Ruby on Rails?
Career with PHP or with ASP.NET?
Method 2
I’d say it depends on your background and how much money you have to throw around too. ASP.net has some great features but you may not even need them depending on your project. The tools are expensive, the hosting is expensive.
PHP is great because you get a lot for free, but there are trade offs.
Personally I like .NET better because thats what I started off with, I feel like I can do more with less, but thats a personal preference. I’m sure some vet php developers feel the exact same way too.
Method 3
Have a look at Phalanger. It is PHP running on the .Net Framework and has been making some huge strides in the last few months. Definitly worth investigating when coming from PHP.
Method 4
I’ve come from a background in Perl/CGI, Classic ASP, and ASP.NET. I decided to take up PHP to see why there is such a tremendous following. I feel like I’ve taken a step backwards in the language scale and would rather code in .NET or Perl.
I think Jeff Atwood would up-mod me on this.
Method 5
Here’s a reason why you should keep using PHP:
http://www.slideshare.net/eplawless/exception-safety-and-garbage-collection-and-some-other-stuff
Method 6
I stopped using PHP before PHP5 was out so I my views on PHP are very outdated I suppose. Nevertheless, what I liked about C# (ASP.NET) was that it forced me into acquiring better programming practices (OO in particular). PHP4 was not object oriented. Maybe the later versions of PHP are different. The greatest obstacle I encountered when shifting from PHP to ASP.NET was understanding OO. If objects are not second nature to your programming style, you’re likely to find out that your ASP.NET learning curve is going to be much shallower than it was with PHP.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0