Tuesday, June 9, 2009

MVC best practices : Don’t use strings!

I’ve blogged before about why I think it’s a bad idea to use strings to refer to controllers (and routes and views etc.) in ASP.NET MVC .

Seems I’m not the only one who is uncomfortable with this.

Check Kazi Manzur Rashid's Blog for a good list of MVC best practices. First item in the list: Avoid passing the controller, action or route name as string. My point exactly!

More MVC best practices and links to other posts on Maarten Balliauw’s blog.

No comments: