Re:ASP.NET MVC Framework (Part 2): URL Routing
by mrtron on Monday December 03, 2007 @12:54PM
(#85654)
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.
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).