Hey!
I was just thinking about ASP.NET. Whats the point in it? PHP is open source and would surely have more to offer (I would have thought. Correct me if im wrong) then ASP.
Why would one choose ASP over PHP? Again, Im not saying just because PHP is open source its better then ASP, Im just wondering why one would use ASP.
Any ideas?
Just wondering. Not looking to start a ASP VS PHP war.
I would rather write c# than php, but I would way rather write ruby than both of those. PHP is a mess
I'm employed as an ASP.NET developer and after working with Web Forms for almost 7 months I've learned that ASP.NET can be very powerful for complex frameworks and can streamline the process of creating pages/CRUDs/models.
If you are doing small projects ASP.NET can be too much for what you want to achieve but if you need to build a complex stack .NET can be awesome.
A lot of the hate against ASP.NET came from Web Forms and the generated html being horrible:
[url]http://stackoverflow.com/questions/46031/why-does-the-asp-net-web-forms-model-suck[/url]
You should do some reading up on what Jeff Atwood (Coding Horror) has to say about ASP.NET:
[url]http://www.codinghorror.com/blog/2008/12/my-scaling-hero.html[/url]
Perhaps you could try out ASP.NET MVC4, there is some really cool stuff in there like Entity Framework with the Code First concept for models.
[url]http://net.tutsplus.com/tutorials/building-an-asp-net-mvc4-application-with-ef-and-webapi/[/url]
[url]http://net.tutsplus.com/articles/editorials/why-many-developers-hate-asp-net-and-why-they-are-wrong/[/url]
(busy so I cba to write a strong base for my opinions atm)
[QUOTE=Chizbang;39414903]Hey!
I was just thinking about ASP.NET. Whats the point in it? PHP is open source and would surely have more to offer (I would have thought. Correct me if im wrong) then ASP.
Why would one choose ASP over PHP? Again, Im not saying just because PHP is open source its better then ASP, Im just wondering why one would use ASP.
Any ideas?
Just wondering. Not looking to start a ASP VS PHP war.[/QUOTE]
ASP.NET is supported by Mono, for what it's worth, meaning you can run it on Linux and Mac. It has full support for Web Forms, MVC and other cool stuff like Entity Framework. MVC and entity framework support came after Microsoft open sourced each of them.
MVC 4 is practically the direction .NET for the web is going, and is significantly different from writing a web forms application. MVC utilises what is essentially a templating engine called Razor, which is plain HTML with inline bits of C# (or VB if you're so inclined), a lot of the logic will be in what's known as the controller, usually passing a model (class with data in it) to the page. [url=http://www.asp.net/mvc]You can probably find a better explanation here[/url].
A web form is essentially your markup with sprinkles of ASP.net controls, you then have a .cs or .vb (depending on the language) code-behind file which defines the logic for the form. Like Windows Forms, the page and each control can have events, and it abstracts a lot of HTTP header stuff you would have to manually process in languages like PHP.
The problem with web forms is some of the HTML it creates. From my experience, using controls like GridView adds HTML attributes you can't remove (and conflicts with some stylesheets) and doesn't generate semantic HTML. Some behaviour is confusing, like with Label - using a AssociatedControlId makes it perform like a <label>, otherwise it will generate a <span>.
You do ASP.NET when you are a Microsoft shop and get into Microsoft. Microsoft will sell you anything in order to get things to work.
You have ASP.NET, C#, MS SQL Server, Visual Studio, etc... the whole stack.
If you are a Sharepoint or other MS Technology based developer though, you have no choice but ASP.NET.
Some companies do it to be Microsoft certified. There's a lot that goes into it.
Sorry, you need to Log In to post a reply to this thread.