MVC Flashcards
Web Programming
The non-design bits, developing web apps of all scaled.
Web apps
Accessed with web browser over a network. Code run on server. Code loaded from server. Data stored on server. Web apps easily updated without updating clients.
3 Tier Structure
First Tier: Client Side Code (HTML, JS)
Second Tier: Server Side Code (C, Python)
Third Tier: Server Side Database
MVC
Model View Controller
Tier 1 - View:Client
Tier 2- Controller:Server
Tier 3 - Model:Database
Presentation View
User Interface and Controller with Code
Data View
Model/Database
Control Flow
User interacts with View Ui, Controller handles input, Controller updates model, View uses model to generate new UI. UI waits for user integration.
Benefits
Local Development: No need to upload to server
Quick turn around time: No need to compile
Database Query and Update easy: No need to hand write SQL (although possible)