Eric's Blog

Day to day experience in .NET
Welcome to Blogs @ IRM Sign in | Join | Help
 Search

Disclaimer

The content of this site is my own personal opinion and does not in any way represent my employer, it's subsideries or affiliates. These postings are provided "AS IS" with no warranties, and confer no rights.

This Blog

Supervising Controller (or Presenter)

When looking at CAB it is obvious how strongly they support the Model View Controller (MVC) and Model View Presenter (MVP) design patterns. The Model View Presenter first appeared in IBM, but was further described by Andy Bower and Bair McGlashan. In their paper "Twisting The Triad" they explain why they choose to use MVP instead of MVC and it's well worth the effort of reading it through.
Now Martin Fowler have retired his description of MVP and separated it into two patterns; Supervising Controller and Passive View. One issue that I have had with MVP is that the Presenter is supposed to expose the data that the View needs which means that it should expose properties from the Model (your own business objects or DataSets). For me this means a lot of extra work and I would rather use the strong Data Binding support that Web and Windows Forms supports and do it directly against the Model. This is now recognized by Fowler and he suggests the Supervising Controller as the pattern when using Data Binding.
I think this is great, but spontaneously I would have liked him to call it Supervising Presenter instead of Controller. He states though that it is TBD (To Be Defined) if it should be called Controller or Presenter. The future will show which he chooses.
Published den 2 augusti 2006 21:38 by ericqu
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

M. Asif Shakir (asif_4ever4u@yahoo.com) said:

Ericgu I think you are right, Supervising Presenter because the prensenter is now listening the Views events and nothing the difference. I 100% agree.
november 9, 2008 05:23

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server, by Telligent Systems