Web Programming Course
SUT • Fall 2018
Layering is one of the most common techniques
for breaking apart a complicated system
Examples:
On the client
embed logic into the UI screens
this makes it easy to duplicate code
simple changes results in hunting down similar code in many screens
On the server
put logic in the database as stored procedures
stored procedures give limited structuring mechanisms, which leads to awkward code
removes the option of changing the database vendor
The model consists of application data, business rules, logic, and functions
A view can be any output representation of data, such as a chart or a diagram
The controller mediates input, converting it to commands for the model or view