Can someone explain MVC very simply for me? I just cant seem to wrap my head around it.
Most tutorials or verbose explanations lose me.
MVC (Model-View-Controller) is a pattern in software design commonly used to implement user interfaces, data, and controlling logic. It emphasizes a separation between the software's business logic and display.
The Model-View-Controller (MVC) framework is an architectural pattern that separates an application into three main logical components Model, View, and Controller. Hence the abbreviation MVC. Each architecture component is built to handle specific development aspect of an application.
-MVC is an architectural pattern consisting of three parts: Model, View, Controller. Model: Handles data logic. View: It displays the information from the model to the user. Controller: It controls the data flow into a model object and updates the view whenever data changes.
A major advantage of the MVC pattern is that it simplifies the testing process by a great deal. It makes it easier to debug large-scale applications as multiple levels are structurally defined and properly written in the application. Thus making it trouble-free to develop an application with unit tests.
To understand MVC in Layman's term, refer to the variation of the bank analogy
Essentially, MVC is:
It's the separation of data (model), logic (controller) and displaying the results (views). Using MVC has the advantage that the different roles in an application are separated, which makes it more robust. Another advantage is that it's easier to maintain as more developers are used to this way of programming.
MVC is a way to separate the core of your application from the graphics parts. you have a controler, you does all the access and work, and some views, who just display the result and interact with the user, without doing any processing off the data
http://en.wikipedia.org/wiki/Model–view–controller
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With