It8002 Web Development Frameworks: DR Janani Arthanari, Associate Professor, Doit, Licet
It8002 Web Development Frameworks: DR Janani Arthanari, Associate Professor, Doit, Licet
Dr Janani Arthanari,
Associate Professor,
DoIT,
LICET
Syllabus
Dr Janani
Course Objective
Dr Janani
Course Outcome
Dr Janani
Topic Covered
Dr Janani
Model View Controller
Software Design Pattern
Divides program logic into three interconnected elements
Model
• The central component of the pattern. It is the application's dynamic data
structure, independent of the user interface.It directly manages the data, logic and
rules of the application.
View
• Any representation of information such as a chart, diagram or table. Multiple
views of the same information are possible, such as a bar chart for management
and a tabular view for accountants.
Controller
• Accepts input and converts it to commands for the model or view
Dr Janani
Elaboration
Model
•data (state) and business logic
•multiple views can be defined for a single model
•when the state of a model changes, its views are notified
View
• renders the data of the model
•notifies the controller about changes
Controller
•processes interactions with the view
•transforms view interactions into operations on the
model (state modification)
Dr Janani
Goals of MVC
Simultaneous development
Code reuse
Advantages and disadvantages
• Simultaneous development
• High cohesion
• Loose coupling
• Ease of modification
• Multiple views for a model
• Testability
Disadvantages
• Code navigability
• Multi-artifact consistency
Dr Janani
Three tier Organization
Client-server software architecture pattern
• user interface (presentation),
•functional process logic ("business rules"),
•computer data storage and data access
Developed by John J. Donovan in Open Environment Corporation
(OEC), a tools company founded in Cambridge, Massachusetts.
Dr Janani
Three Tier in Web Development
Dr Janani
What’s Next..
Frameworks - Introduction
Framework Applications
Dr Janani