Mvc overview.

December 9, 2011

It is pretty cool. I got my hands dirty developing sites in Mvc. So I thought I will write my initial feel of it. Everyone will say it is pretty cool. Is it like buying a new Ipad, Could be.. The best part of it is the ajax and the javascript libraries that make it pretty nice. Going forward I feel we don’t need much c# or, I feel if we can connect to db from javascript. I never tried that area though. The reason I was telling this is we can create a grid in javascript and likewise pretty much anything so that is cool right if you know javascript or some of it libraries.

Let me get to mvc now. The different types of view engines, granular control over the html we are creating. Friendly Url’s and now we don’t need the pageload getting called again and again for all postback and we don’t need to check Ispostback == true etc..  The get and post request are going to call different methods so that overload of interpreting the same code again and again will not be there.

Is it  like vb or asp now ? Where we write the code in-line with the html yes it is and it makes me feel that are we going to a better version of vb or asp. If you ask someone who has seen the technology coming and evolving you will know. It is like a vicious circle. We involve improve and start doing things which we did 10 years back and think it is pretty new.. is it could be… separation of concern is something which was pretty cool. Like a company where there are process and procedure and teams and tasks and each one is supposed to do certain things. I mean controller is person who calls the model and get data but don’t ask him how the data is going to be presented to the user. It is pretty nice for large scale development where I can create a model and controller which out even creating the view and some other team can work on the views. (UI guys) who are extremely good at user interface and the guys who are extremely good at building frameworks or writing business rules can concentrate on that.

Come on people no more pageload() and ispostback()..

Then I asked myself what are the disadvantages of using MVC over webforms. Umm..You know what now you cannot drag and drop a grid view control and assume everything is done for you. You need to write your own code. That suckes..but you can build more controlling and custom UI but you need to be good at UI because you have to do everything.

See some of the site I worked on