Board index » delphi » MVC pattern questions
MVC pattern questions
2006-02-02 05:09:14 AM
I'm required to use the MVC pattern for an assignment, and have read
through various descriptions. I am still a bit confused, especially
with understanding the exact roles of the Controller and the View.
From what I read, it appears that the View is passive, and only
displays information from the Model to the user. The Controller is
resposible for all user input, and will use this to change the Model
To me, it seems that this way, the View and the Controller are
awefully linked. So much in fact that in many cases it seems to me
like an odd separation in many ways.
Wouldn't it be better to let the View handle all the UI (both output
and input), and call the Controller to perform the various operations?
Ie Model handles data, Controller handles logic, View handles UI. This
way you'd only have to make a new View decendant when you want to
change the UI method (console / gui / web), instead of having
decendants from both the View AND the Controller.
Could someone offer some clarification please? :)