MVC Umm

From Coder Merlin
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Paradigm: A paradigm is defined as a method used to solve a problem or complete a task. A programming paradigm is a paradigm through the use of programming languages using tools and techniques available to a user. Some examples of programming paradigms include Imperative, Declarative, and Model View Controller.


Model View Controller: A model view controller, also known as an MVC, is a software that is designed to separate the logic of an application from the rest of the user interface. To do this, the software breaks up the application into three parts: the model, the view, and the controller.

Model: The point of the M, or model, is to manage the data of the application. The model is meant to respond to any changes or requests in information.

View: The V, view, is to provide the user interface to the application. This is meant to render data from a model into some sort of form that a user can understand.

Controller: Finally, the C, or controller, is created to receive inputs from a user and to model objects and to adjust the view accordingly.


MVC example.png


Why MVC is a good Programming Paradigm: MVC makes it easy to transfer ideas into code since it's split into three sections which are able to dictate portions of each other as well as being simple in its approach to these three sections. Model is the data which is taken by the Controller to interact with the View which is able to change the Model through the Controller. This connection between Model, View, and Controller also makes it easier for a user to come back and see what is wrong with their code as well as change it since problems can be fixed by fixing only one part of the MVC since it also semi-controls the rest of the MVC.This, by extension, makes it easy for other users to look at the code and understand what it does. This mixture of easy use, reworking, and understanding makes MVC a good programming paradigm.


https://www.codecademy.com/articles/mvc https://www.geeksforgeeks.org/introduction-of-programming-paradigms/ https://softwareengineering.stackexchange.com/questions/127624/what-is-mvc-really