MVC ARCHITECTURE
MODEL VIEW CONTROLLER
If you want to build any interface the most fundamental and general design for a beginner is MVC architecture.

The model defines what data the app should contain.
The view defines how the app's data should be displayed.
The controller contains logic that updates the model and/or view in response to input from the users of the app.
web programming is interesting and fun when you imagine whats going around and relate it to general world.
EX: above architecture can be related to a online shopping website.
1)Going back to our shopping list app, the model would specify what data the list items should contain — item, price, etc. — and what list items are already present.
2)In our shopping list app, the view would define how the list is presented to the user, and receive the data to display from the model.
3)our shopping list could have input forms and buttons that allow us to add or delete items. These actions require the model to be updated, so the input is sent to the controller, which then manipulates the model as appropriate, which then sends updated data to the view.
If you want to build any interface the most fundamental and general design for a beginner is MVC architecture.

The model defines what data the app should contain.
The view defines how the app's data should be displayed.
The controller contains logic that updates the model and/or view in response to input from the users of the app.
web programming is interesting and fun when you imagine whats going around and relate it to general world.
EX: above architecture can be related to a online shopping website.
1)Going back to our shopping list app, the model would specify what data the list items should contain — item, price, etc. — and what list items are already present.
2)In our shopping list app, the view would define how the list is presented to the user, and receive the data to display from the model.
3)our shopping list could have input forms and buttons that allow us to add or delete items. These actions require the model to be updated, so the input is sent to the controller, which then manipulates the model as appropriate, which then sends updated data to the view.

Comments
Post a Comment