Model Viewer Presenter. Take 2

by Marius Gheorghe 20. April 2007 18:54
If you search for a practic MVP implementation on the Internet there are VERY high chances to find a sample implementation in which the Presenter and the Viewer are ""tied"" together using a interface. Personally i don't agree with this and I think that the interface doesn't serve any useful purpose. It's just dead code to drag along.

The view ""describes"" how the UI was supposed to work. You can instantiate the presenter from the viewer and ... just use it. There is not a single practical reason for which you'd want to ""tie"" the Presenter and Viewer with a interface.

Comments are closed

marius gheorghe

developer, dad, gamer

Contact me

My Resume

Favourite Tools