My question is regarding design patterns, why most of the Web Applications currently employs Model-View-Controller Design Patterns as compared to other Design Patterns ?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The MVC pattern lends itself naturally to the core of what the Web frameworks provides:
and keeping these concerns separate and not intertwined. It is often tempting to mix these concepts (e.g. SQL calls within a JSP/ASP page), which leads to maintenance problems. MVC helps to prevent that and put some structure into the overall web application.
Of course, other design patterns can still be used in the web application, but MVC fits the Web Framework’s “serving of backend data” scheme, very well.
EDIT:
as RibaldEddie points out: MVC is not just the separation of these concerns, but how the framework allows them to interact cleanly. Of course, there’s more to the MVC pattern, this is not an exhaustive explanation of the pattern.