Model-View-Controller (MVC) Explained Through Ordering Drinks At The Bar
Kevin Kononenko
88930
Fantastic explanation. There are a couple of other variations on MVC. Extending on your bar analogy. Here’s one:
Thin View
After mixing the drink, the bartender pours it in your mouth. And takes your card out of your pocket for you.
In practical terms, the controller even handles aspects of the view, e.g. “set_text_color(‘red’)”.
There are others, like Model-View-ViewModel that give you a different program structure, and I think would be fun to apply this analogy to :)