5
shouts

MVC Routes and Magic Strings - No Good

published 703 days, 12 hours, 9 minutes ago posted by https://www.isi-net.com/OpenID/RMuthhttps://www.isi-net.com/OpenID/RMuth 704 days, 10 hours, 37 minutes ago
Tuesday, March 02, 2010 3:18:28 PM GMT Monday, March 01, 2010 4:50:25 PM GMT

I live and breath with ASP.NET MVC, but from the very beginning I’ve been very uncomfortable with the magic string nature of routes, controllers, and actions. I long ago stopped using the various “action” extensions because they are way too prone to fat finger screw ups and moved nearly 100% to using route extensions and putting my routes names into constants so as not to have any chance of fat finger issues, but recently, after reviewing the source code for MVC2, specifically the “LabelFor” extension, I...

category: ASP.NET | clicked: 4 | | source: www.isi-net.com | show counter code
tags: MVC, Routing