Developer Notes

Pink flowers

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 stringMy point exactly!

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