Professional Documents
Culture Documents
MVC architecture
The Model-View-Controller (MVC)
The functions:
The brain and muscles
They receive requests,
use the data to perform
the functionality then
update the views
• Pros:
§ Allows the data to change independently of its
representation and vice versa. Supports presentation
of the same data in different ways with changes made
in one representation shown in all of them.
Cons:
§ A lot of wasted computation if there are many
observers subscribed while only few are interested in
model changes.
l Controllers:
l The “glue” between the boundary and entity
objects.
15
V C
C
MVC
M M
MVC
C
M
MVC
C
V
M
C