Presentation Patterns

Below is summary of http://aspiringcraftsman.com/2007/08/25/interactive-application-architecture/

(Web) MVC:

Controller’s responsibility is to mediate between the user interaction and application logic/domain model

Controller decouples View and Domain Model.

FrontController to deal with infrastructural concerns and dispatching requests to individual Controllers

Because web-applications(HTTP) is stateless view is rendered on each request.

MVP:

UI Widgets take care of intercepting the users interactions which are delegated as events to EventHandlers.

Presenters responsibility is to contain presentation logic as well as interact with the Domain Model/Application Logic for the view.

In both the cases Views handle the output to present to user and controller/presenter and updates the domain model. Controller takes care of handling the input from user where as View (for MVP) handlers takes care of user interaction.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s