DCSIMG
MVC vs MVP - Maor's Blog

MVC vs MVP

MVC or MVP? You've probably heard about Microsoft's new ASP.NET MVC Framework.

MVC methodology divides an application's implementation into three component roles:

  • Models
  • Views
  • Controllers.

MVP approach divides an application's implementation into:

  • Model
  • View
  • Presenter

What is the difference between the  MVC and MVP patterns?  Todd Snyder has an excellent explanation. This is summary by the key differences between the two patterns:

MVP MVC
View is more loosely coupled to the model. The presenter is responsible for binding the model to the view Controller are based on behaviors and can be shared across views
Easier to unit test because interaction with the view is through an interface Can be responsible for determining which view to display
Usually view to presenter map one to one. Complex views may have multi presenters  

 

Technorati Tags: ,,
Published 08 December 2007 03:45 PM by Maor David-Pur

Comments

# OhadAston said on 08 December, 2007 05:24 PM

There is a great MVP framework called NMvp, it should be integrated with the Microsoft MVC framework (or Castle MonoRail):

www.stormwindproject.org/.../Home.html

# rascunho » Blog Archive » links for 2007-12-08 said on 08 December, 2007 10:24 PM

Pingback from  rascunho  » Blog Archive   » links for 2007-12-08

# Teen Model Talent » MVC vs MVP said on 28 December, 2007 05:26 PM

Pingback from  Teen Model Talent  » MVC vs MVP

# Oleg Zhukov said on 02 November, 2008 07:58 AM

Hi Maor,

Another lightweight yet powerful MVP Framework is MVC# ( http://www.mvcsharp.org ). Please take look at it!

Thanks,

--

Oleg Zhukov

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above:

Search

Go

This Blog

News

    RSS

     

    Connect with Me

    Maor's Facebook profile  Follow Maor on Twitter  Maor's profile on Linkedin  Maor in FriendFeed 
           

Syndication