DEV Community

Discussion on: Explain MVC like I'm five

Collapse
 
rhymes profile image
rhymes • Edited

This is a hard one to explain to a five year old.

Essentially MVC is about responsibility.

I would tell the kid that there are three people working in a shop. One is responsible for taking customers requests, one is responsible for fetching the item the customer wants and the third one is responsible for wrapping it in a nice packaging and giving it back to the customer.

Collapse
 
lepinekong profile image
lepinekong

Not so difficult if you think about MVC like ... a statistician :)

M=Variable under Observation
V=Projection of M from several Viewpoints
Controller=holds the transformation rules

posted a few years ago twitter.com/lepinekong/statuses/66...

Collapse
 
rhymes profile image
rhymes

I don't really know any five year old who's also a statistician 🤣

Thread Thread
 
lepinekong profile image
lepinekong

It's not because you've never met one that he doesn't exists ;)