Week4 MVC
Week4 MVC
Week 4
Software Engineering
Wk Lecture Practical
1 Introduction Canvas, Assessment Understand the case study.
Software lifecycle Write the user stories.
Design the database and the
2 Work as a group! Agile software
Plan the work on the UI Review of the software requirements and Set the version control
and the Use Case diagram. design
Review of the OOP concepts.
3 User Stories Git
4 Plan the work on the user Graphical User Interface. MVC pattern. Coding
stories Retrospective
Check if you are on track.
5 Plan the work on the From UML to C# code
database Create and connect the database to the
application.
6 Plan the current task Testing
Frontend Backend
interacts with the user doesn’t interact with
the user
Database
BACKEND
Frontend vs backend
The classes generating the frontend should be in a package /
namespace.
The frontend classes use the backend classes.
• thoroughly tested
• connected to any frontend.
Model View Controller (MVC) Pattern
View
Model
Controller
Model View Controller (MVC) Pattern
• represents the data or
• contains data or
• is interfacing with the database or
View
Model View Controller (MVC) Pattern
View
Data Model
Controller
Model View Controller (MVC) Pattern
View
Data Model
Controller
Model View Controller (MVC) Pattern
View
Data Model
Commands
Controller
Model View Controller (MVC) Pattern
View
Data Model
Commands
Controller
View
Data Model
Commands
Controller
Processes the user’s requests and instructs the model with what
the user wants.
Model View Controller (MVC) Pattern
View
Data Model
Commands
Controller
View
Data Model
Commands Commands
Controller
Model View Controller (MVC) Pattern
View
Data Model
Commands Commands
Controller
View
Data Model
Commands Commands
Controller
View
Data Model
Commands Commands
Controller
In practice…
Once the application is finished (by week 9), look at the code and
try to implement the MVC pattern.
Don’t forget …
Wk Lecture Practical
10 Double check.
No new features.
11 Enhancements.
Questions