I am in a little debate with another programmer about this. The issue is - can a View create it's own MVP (Model View Presenter) triad?
The other programmer thinks this is permissable. He would put the code to initialize the Model and Presenter in the View's constructor, then inject the Model and itself into the Presenter.
My objection to this is that this makes it impossible to use a view with any other model (without changeing the code in the View). Also, it seems to break the very purpose of MVP to have the View using a very specific model.
What say you?
The other programmer thinks this is permissable. He would put the code to initialize the Model and Presenter in the View's constructor, then inject the Model and itself into the Presenter.
My objection to this is that this makes it impossible to use a view with any other model (without changeing the code in the View). Also, it seems to break the very purpose of MVP to have the View using a very specific model.
What say you?