DEV Community

Cover image for What is MVC?
MansaMusa55
MansaMusa55

Posted on

What is MVC?

MVC stands for Model view controller. MVC is one of the most frequently used patterns in the Software Development world. The main purpose is to separate functionality and display requested data back to the user.
Alt Text
The 'M' in "MVC" stands for model. The model interacts with a database and can sometimes update the view but that depends on the framework being used. The 'V' stands for view which is basically the user interface that the user sees. This is where all the HTML/CSS reside. The view contains template engines that allows dynamic data to be passed through if there is no logic-based language involved (eg. Javascript). Lastly we have the controller which is basically the "traffic controller" of everything. The controller processes requests and gets data from the model and then the data gets passed to the view.

Top comments (1)

Collapse
 
murphymurph21 profile image
John Murphy

Thanks, love the short explanation actually and the clarity of it as well.