Difference between revisions of "MVC"

From Coder Merlin
Line 1: Line 1:
== Introduction ==
== Introduction ==
[[File:MVC-Process.svg.png|thumb|Graphical process of MVC]]
[[File:MVC-Process.svg.png|thumb|Graphical process of MVC]]
The '''MVC''' stands for '''Model''', '''View''', and '''Controller''', and is a popular way to organize code. The idea is that certain parts of code in a project have different purposes, and by separating them into different objects, it becomes much easier for you and your peers to understand what object does what. Almost every app can organize their code in such a way.
The Model-view-Controller, or '''MVC''', is a popular way to organize code for apps and websites that have some sort of user-interface. The idea is that some pieces of code can be grouped into different objects that serve different functions. By using this method, it makes it much easier for fellow collaborators to understand the purpose of the authors code, and where future material should be added. These three objects are '''Model''', '''View''', and '''Controllers'''.
 
== History ==
== History ==
[[File:Trygve reenskaug.jpg|thumb|Trygve Reenskaug, the orginial creator of the MVC]]
[[File:Trygve reenskaug.jpg|thumb|Trygve Reenskaug, the orginial creator of the MVC]]

Revision as of 10:39, 18 August 2021

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

Introduction[edit]

Graphical process of MVC

The Model-view-Controller, or MVC, is a popular way to organize code for apps and websites that have some sort of user-interface. The idea is that some pieces of code can be grouped into different objects that serve different functions. By using this method, it makes it much easier for fellow collaborators to understand the purpose of the authors code, and where future material should be added. These three objects are Model, View, and Controllers.

History[edit]

Trygve Reenskaug, the orginial creator of the MVC

Components[edit]

Usage[edit]