- What is MVC(Model-View-Controller)?
Explained by ordering a drink from a bartender.
* Model: Structures your data in a reliable form and prepares it based on controller's instructions (Like .json file or simple array)
* View: Website UI, displays data to user
* Controller: Takes in user commands, sends commands to the model for data updates (Business Logic)
User - you, the customer
User request - your order
Controller - bartender's brain
Model - limited toolset behind the bar
View - finished drink
Manhattan:
to you: a sweet and delicious drink.
To the bartender: is not a tasty drink, it is merely a series of steps. Grab glass -> Add whiskey -> Add vermouth -> Add bitters -> Stir drink -> Add cherry -> Ask for credit and charge.