DEV Community

Discussion on: Explain MVC like I'm five

Collapse
 
matteojoliveau profile image
Matteo Joliveau

MVC is a pattern composed of three parts, the Model, the View and the Controller.

You walk in a McDonald and you order at the big interactive touchscreen.
The screen is the View, and you ask for your meal there.
The order is passed to the operator, who is the Controller, that will go in the kitchen and fetch a burger (your wanted resource) of the type (Model) you asked, then deliver it back to you.

The View handles user interaction and presents data.
The Model represents the type of resources the application can deliver.
The Controller is responsible for coordinating requests and responses.

Collapse
 
josenriagu profile image
Josemaria Nriagu

Very beautiful analogy!

Collapse
 
cmelgarejo_dev profile image
Christian Melgarejo

This one made me hungry now <3

Collapse
 
c_budah profile image
Sbusiso Madlopha

🤣😂