Can someone explain MVC very simply for me?

model-view-controller

Solution

To understand MVC in Layman's term, refer to the variation of the bank analogy

Essentially, MVC is:

- the Model is the part of the code that knows things

- the View is the part of the code that shows the things the Model knows

- the Controller is the part of the code that gets commands from the user and tells the View what to show and the Model what to know.

Problem

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.

Original source

Related problems