Wednesday, November 07, 2007

Microsoft's MVC Framework

I'm very excited about Scott Gutherie's new ModelViewController framework. It's very similiar to RubyOnRails, Grails, and Monorails where the three logical concerns of Model, View, and Controller are separated. This separation makes Test Driven Development much easier. In the current ASP.NET world the ModelViewPresenter pattern is used to separate these concerns, but it's a pain.
Cool Features of Microsoft MVP:

  1. xUnit friendly
  2. Built-in mock objects
  3. Very pluggable for Dependency Injection and other major components
  4. Friendly REST-like URL generation
  5. Separate directories for Model, View, Controller just like RoR

2007-11-07-ScottGutherie.png
Scott's original blog entry is here.
A video from the Alt.Net conference in Silverlight is here and if you can't get Silverlight audio, the wmv file is currently here.
(Yeah, I know you're not suppose to do the "click here" links, but some studies show that using them doubles the clickthru rate).

After the success of Java in the late 1990s, Microsoft did some serious research on the strengths and flaws of Java (one of my fiends was in a Microsoft sponsored focus group about Java). C# was the result - a slight improvement on Java. I'm encouraged that Scott and his team have researched many MVC frameworks and have learned from each.
The MVC framework should be here in a month or so and we can play with it inside VS2008.

No comments: