Difference between revisions of "Model-View-Controller (MVC)"

From Coder Merlin
m (References)
Line 20: Line 20:
By: Mark, Reese, and Aidan
By: Mark, Reese, and Aidan
== References ==
== References ==
* [[https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller]] (Wikipedia)
* [[https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller Model-view-controller]] (Wikipedia)

Revision as of 10:42, 18 August 2021

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

Introduction to MVC[edit]

The MVC system was introduced in the 1970's, but expressed as a general concept later in 1988. The system has evolved over time with many variations, such as hierarchical model-view-controller (HMVC), model-view-viewmodel (MVVM), model-view-presenter (MVP), model-view-adapter (MVA), and many other adaptations of the MVC system. The system was one of the first ways to describe and implement software constructs in terms of their responsibilities.

The Model View Controller (MVC) is a method of software design that is used to create user interfaces. The Model, View, and Controller are all elements of the MVC design, and all manage a specific task related to user interfaces. The MVC method helps to separate different GUI functions from each other, leading to cleaner code.

The model-view-controller consists of the model, view, and controller.

  • The model interacts with data inputted and stored in the system.
  • The view allows the user to have a visual representation of the data and choose how they want to manipulate it.
  • The controller acts as a liaison between the model and view which will never communicate directly with each other.

The Model[edit]

The View[edit]

The Controller[edit]

MVT Structure

By: Mark, Reese, and Aidan

References[edit]