First Thoughts On MVC.NET

Finally some time for .net.

Since Scott and Phil started writing about is I wanted to read and try out the MVC framework. So last night I managed to read a few blog posts on the topic, namely Scott's expectedly great series of posts and Phil's REST like post and Testing Routes. I wrapped my evening of MVC with Scott's (this time Hanselman) MVC How-To Screencast.

The Screencast
It is a really good place to start. Not to mention that I really enjoyed the production value it brought to the table.

First of all the small screen capturing his face as he talked and worked was a great idea. I really thought it would bring nothing to the presentation, but it did. And it was small enough, and not present at all times, so it didn't overdo it or get in the way. The worse thing about it was that I kept thinking how he looked like a hockey player.

Comments were useful for us (grab a few notes while watching) and him (not recording parts again), and sometimes funny. They helped set a nice casual tone.

The only thing I have a minor issue with is the zooming which was sometimes too fast. There were times when I thought I was watching a car chase on TV.

The MVC
So far I really like the idea behind the model. And there are a few things I really want to try for myself.

Routing my way - I am pretty sure that I can do all of the following out of the box:

Add more stuff to the routing rules to get more parameters in. Should be simple enough and a brilliant way to make multi-language sites.

Setting default actions to get prettier URLs. So site.com/category/product/productID would show the product details; but site.com/category/product/edit/productID will take me to the update page. The simplicity of making a end-user site and an administrative portion of a site is present (and you can then move the admin bit into a subdomain or something like that).

Or even downsize it more: there has to be a way to make site.com/Green_Tea understand that it is looking at Green_Tea category and then list all the needed items.

The thing I want to test the most is building routes dynamically, and cheating with the displayed URLs. For example: site.com/category/id should display a list of records. But what if the end user wanted a site in German? Why should his German speaking users need to read category? I should be able to map the category display dynamically and get site.com/kategorie/ that routes to the controller listing the category.

I hope to try it out a bit this Sunday. And I'll keep you posted.

Published Wednesday, December 19, 2007 11:01 AM by Ranko
Filed under:

Comments

# re: First Thoughts On MVC.NET

Sunday, April 3, 2011 6:56 AM by weblogs.asp.net

First thoughts on mvc net.. Nice :)

# re: First Thoughts On MVC.NET

Friday, April 29, 2011 11:07 AM by weblogs.asp.net

First thoughts on mvc net.. Smashing :)

# re: First Thoughts On MVC.NET

Sunday, June 12, 2011 12:16 PM by weblogs.asp.net

First thoughts on mvc net.. Bully :)

# re: First Thoughts On MVC.NET

Tuesday, March 20, 2012 7:06 PM by xjmuWDrYlutYhaHdL

Very good article.Thanks Again. Really Great.

# re: First Thoughts On MVC.NET

Saturday, April 14, 2012 6:17 PM by HNqunwLJmXZabRypS

73cU3i I think this is a real great article.Thanks Again. Awesome.

# re: First Thoughts On MVC.NET

Wednesday, February 27, 2013 7:00 PM by gmAiziKQdcqfF

NiSGXe Thanks for the blog post.Much thanks again. Keep writing.

# re: First Thoughts On MVC.NET

Tuesday, May 14, 2013 8:04 AM by OmLBugCXboaDQCbTFbL

NJyfFu Fantastic article.Much thanks again.

# re: First Thoughts On MVC.NET

Saturday, May 25, 2013 12:58 PM by CElyiOklbc

Av7Bpd Im thankful for the blog post.Much thanks again. Cool.