R – Can the Presenter of Web Client Software Factory(WCSF) and Smart Client Software Factory(SCSF) shared and how

mvpnetpresenterscsfwcsf

Web Client Software Factory(WCSF) and Smart Client Software Factory(SCSF) both use MVP pattern.

M-Model can be shared.

V-View has to be different as both are on different platform(Desktop/Web).

I want to know can the P-Presenter can be shared or can I be exactly same for both and how.

Best Answer

In general, no, that's not how the pattern(s) work. The Model is the reusable portion, and the combination of V + C/P comprise the application layer, and therefore are application-specific by definition.

If you have logic in your presenters that seems like it should be reusable across different applications, you should look at how you can push that down into your domain layer, and make it part of your Model.

This is one of the best articles on the subject.