Monday, January 18, 2010

A short note on MVC!

Everybody might have heard about Microsoft’s ASP.Net MVC framework. Here I want to share a little knowledge about MVC framework. MVC stands for Model-View-Controller and is one of the most popular design patterns for decoupling data access and business logic from data presentation and user interface. MVC composes of three different roles, Model—An MVC model contains all of an application’s logic that is not contained in a view or controller. The model includes all of an application’s validation logic, business logic, and data access logic. View—An MVC view contains HTML markup and view logic (the user interface). Controller—An MVC controller contains control-flow logic. An MVC controller interacts with MVC models and views to control the flow of application execution. The ASP.NET MVC framework enables you to build web applications that are easier to maintain and extend over time. The Model View Controller pattern encourages a clear separation of concerns. The framework also encourages good software design patterns.

For a developer who wants total control over every HTML tag and pixel that appears in a web page, the ASP.NET MVC framework is the ideal one. ASP.NET MVC also enables you to expose intuitive URLs to the world. Exposing intuitive URLs is important for getting your website indexed by search engines. This is important for Search Engine Optimization. The MVC Framework doesn't support classic postbacks and viewstate and doesn't consider any URL as the endpoint to a physical server file to parse and compile to a class. One of the other main advantages of using ASP.NET MVC framework was that it supports test-driven development. So no need to worry about unit testing anymore.

No comments:

Post a Comment