The Benefits and Drawbacks of using The MVC Pattern

IV The Benefits of using The MVC Pattern1

  • Different views and controllers can be substituted to provide alternate user interfaces for the same model.
  • Multiple simultaneous views of the same model
  • The change propagation mechanism insures that all views simultaneously reflect the current state of the model.
  • Changes affecting just the user interface of the application become easier to make.
  • With MVC it can be easier to test the core of the application, as encapsulated by the model.

V The problems of MVC2

  • There’s increased complexity as an apllication may use other patterns at the same time as MVC.
  • The view and the controller are closely coupled wich makes modification to one affect the other.
  • Changes to the model interface will necessitate changes to the controller and the view.
  • When the model is active frequent changes to model can result in excessive updates of the corresponding views.

1

Model View Controller explication page of the phpWACT framework, http://www.phpwact.org/pattern/model_view_controller

2ibid

Explore posts in the same categories: MVC and the web

Comment: