Saturday, December 27, 2008

Microsoft ASP.NET MVC and the Potential Spaghetti Code Problem

I'm really enjoying the ease of use in the new MVC framework, but I've noticed it reminds me a lot of the old PHP days where you had that mix of html and those dreaded <% %> tags. Not that there's anything wrong with spaghetti code--it's actually quite useful at times. But it can get annoying when you begin doing site maintence. Hopefully this will be addressed by the time they are through with the beta. Anyway, just my 2 cents.


  1. I had the same problem, it is a little weird doing that kind of coding again. However it is intended for the view to feel like the old HTML coding days. Most Web designers like that kind of coding.

    It is hard for us back end coders to get used to it though.

  2. Yea, I know what you mean. The more I'm working on the church website, however, I'm beginning to remember why I liked PHP so much. It's nice being able to switch in and out of html. Most of my content will be generated by a database, anyway. I'm making a news table that Bro. John and Vera or other staff members can use to post articles and specify when they should appear and when they should end. I think once I get the content dynamically generated, I won't notice the spaghetti code so much.