Future of ASP.net and MVC?


Recently a friend of mine are asking about ASP.net Web form vs MVC which one are better and which one should go for starting an application? I was given some opinion and discussion with him regarding the pros and cons about web form and MVC. Therefore, I decided to written it down in my blog for as references whether web form or MVC.

ASP.NET MVC

Pros
  • Provides fine control over rendered HTML.
  • Cleaner generated HTML.
  • Superior separation between UI and code.
  • Easier to unit test.
  • Can support multiple view engines.
  • By default uses RESTful intefaces for URLs – so better SEO.
  • No ViewState (this may also be a weakness).
  • Typecal size of page is small.
  • Easy integration with frameworks like JQuery.
Cons
  • Not event driven, so maybe difficult for people who know only ASP.net Webforms to wrap their minds around it.
  • Third party control library support is not that strong.
  • No ViewState(this is also a strength).
Threats
  • Bigger ramp-up and training time required for developers with no or little experience in web application development.
Opportunities
  • Allows for Test Driven Development(TDD) – it is build with TDD in mind, so its much easier to write unit test cases, mock objects and to intercept the program flow.
  • Allows for reuse of the same models to present different UIs and Interfaces.

 

ASP.NET WebForms

Pros
  • Provides very good RAD development capabilities.
  • Great designer support in VS.
  • Ease of development for data-heavy LOB applications.
  • Very rich control libraries and third party vendor support.
  • A familiar event-driven model when compared to Windows Forms development, and so easy for developers to pick up.
Cons
  • UI logic coupled with the code, and thus is hard to separate.
  • Harder to unit test, so difficult to employ TDD.
  • Heavy page sizes due to view state management.
Threats
  • Harder to adopt to various UI views despite the various frameworks available (master pages, themes, etc.)
Opportunities
  • Great at creating quick prototypes for business applications. This comes in very handy when trying to show quick Proof of Concepts to clients.

 

When to use ASP.net WebForm or MVC?

image

About these ads

About Yeoh Eik Den

I am a SharePoint developer, and I like to bringing a visual exploration of the dot net in the real world.
This entry was posted in ASP.net and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s