TriCom Technical Services

The Rise of MVC

In .Net, ASP.Net, coding, contoller, model, model-view-controller, MVC, view on January 18, 2013 at 2:52 pm

You can’t get away from it – nearly every recent .Net Developer job description in the Midwest lists MVC as a “must have” or “nice-to-have” requirement.

For those of us who aren’t familiar with it, the central idea behind MVC is code reusability and separation of concerns.

Model-view-controller (MVC) is a software architecture pattern that separates the representation of information from the user’s interaction with it. The model consists of application data and business rules, and the controller mediates input, converting it to commands for the model or view. A view can be any output presentation of data, such as a chart or a diagram. Multiple views of the same data are possible, such as a pie chart for management and a tabular view for accountants.

In addition to dividing the application into three kinds of components, the MVC design defines the interactions between them.

A typical collaboration of the MVC components

controller can send commands to its associated view to change the view’s presentation of the model (e.g., by scrolling through a document). It can send commands to the model to update the model’s state (e.g., editing a document).

model notifies its associated views and controllers when there has been a change in its state. This notification allows the views to produce updated output, and the controllers to change the available set of commands. A passive implementation of MVC omits these notifications, because the application does not require them or the software platform does not support them.

view requests from the model the information that it needs to generate an output representation. (Wikipedia)

Interested in learning more? Here are some tutorials to ASP.Net MVC, Intro to ASP.Net MVC 4, and Implementing Model-View-Controller in ASP.Net. You can also add to your resume by attending classes and earning certifications through your local IT education facility.

Happy coding!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: