MVC - Western Washington University

Download Report

Transcript MVC - Western Washington University

MVC
Greg Phelps
Trent Spangler
AGENDA

What is MVC

Web Forms vs MVC

Example

Learn More!
Model:
The business rules, logic, and data.
Controller:
Handles the user interaction and input logic.
Example: procedures, methods, functions
View:
Representation of model data.
Examples: any user interface, web page, application
WEB FORMS vs MVC?
WEB FORMS (PROS)


Rapid Application Development (RAD)
•
Drag and drop controls
•
Mechanisms behind controls and pages are hidden
Maturity
•
Smaller learning curve for developers
•
More robust legacy framework
WEB FORMS (CONS)

Less control over html produced due to RAD
MVC (PROS)

“Separation of Concerns”, encapsulation, & modularity

Multiple forms on one page*

Similar to other non-Microsoft frameworks

Test Driven Development is facilitated
MVC (CONS)

Developer needs to be fairly competent in HTML
and CSS

The Views are HTML structures that are written
from scratch by the developer

MVC is relatively new

Higher cost

Bigger learning curve
EXAMPLE
WHERE YOU CAN LEARN MORE!