ASP.NET MVC Framework (Part 2): URL Routing(weblogs.asp.net)
weblogs.asp.net
ASP.NET MVC Framework (Part 2): URL Routing
http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx
2 comments
Just skimming over the article, it seems to me that the framework authors are trying to do something similar to Routes in Rails or Pylons (http://routes.groovie.org/).
Actually, I find Routes' much clearer and easier to use (regular expressions and readability don't go very well together, IMO) than Django's URL-scheme. The url-generation feature of Routes comes in handy, too... don't know if Django has something equivalent. Granted, regular expressions may be more powerful, but I am willing to sacrifice some expressiveness in exchange for ease of use and improved readability. So, I can see why the framework authors ported that functionality (sort of).
Actually, I find Routes' much clearer and easier to use (regular expressions and readability don't go very well together, IMO) than Django's URL-scheme. The url-generation feature of Routes comes in handy, too... don't know if Django has something equivalent. Granted, regular expressions may be more powerful, but I am willing to sacrifice some expressiveness in exchange for ease of use and improved readability. So, I can see why the framework authors ported that functionality (sort of).
You find those routes easier to read than a list of regexs?
Interesting, I assumed the django list would make sense what it was doing at a glance to anyone.
I am just picturing a list of ~25 routes, and it being impossible to get an idea of the sitemap.
Interesting, I assumed the django list would make sense what it was doing at a glance to anyone.
I am just picturing a list of ~25 routes, and it being impossible to get an idea of the sitemap.
looks really simple just the way I like it...
also you can plugin your own routing if you want to do it your own way I think. I watched the video from part1 and it was mentioned that most of the mvc stuff can be swapped out.
I am really looking forward to getting my hands on this.
also you can plugin your own routing if you want to do it your own way I think. I watched the video from part1 and it was mentioned that most of the mvc stuff can be swapped out.
I am really looking forward to getting my hands on this.
Django:
I could see this being yet another situation where someone writes a utility to produce these URL routes for ASP.NET, and makes me wonder why they took such an approach.