Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Benefits of MVC over MVP [duplicate]

Possible Duplicates:
What are MVP and MVC and what is the difference?
mvc and mvp pattern

Folks,

What are some of the benefits of using MVC over MVP? I like that I don't have to use a framework for MVP and can be implemented via interfaces and classes. I still get the separation of concerns that MVC has and I get unit testing. What are some benefits of using MVC over MVP?

like image 529
Crios Avatar asked Jul 30 '09 16:07

Crios


People also ask

Is MVC better than MVP?

MVP pattern overcomes the challenges of MVC and provides an easy way to structure the project codes. The reason why MVP is widely accepted is that it provides modularity, testability, and a more clean and maintainable codebase. It is composed of the following three components: Model: Layer for storing data.

What are MVC and MVP and how MVC is different from MVP?

Although the Flow diagram looks same as MVC the difference is how the VIew and Presenters/Controllers interacts with each other. In MVP the Views and presenters interact via an interface(unlike MVC). Presenters perform some action on the Interface, which is implemented in Views and hence the view gets updated.

What is the difference between MVC MVP and MVVM and when should you use what?

Coupling of the Components MVP: This software architecture has a dependent user interface as it uses the presenter to act as a link between the view and the model. MVVM: MVVM implements data binding and allows easy separation of the model and the view.

What are the similarities between MVC and MVP design patterns?

The MVP pattern is similar to the MVC pattern. It is derived from MVC pattern, wherein the controller is replaced by the presenter. This pattern divides an application into three major aspects: Model, View, and Presenter. The Model represents a set of classes that describes the business logic and data.


1 Answers

I wasn't even aware of "MVP" but haack[overflow] has a pretty good looking article...

Everything You Wanted To Know About MVC and MVP But Were Afraid To Ask

At the risk that Haack blocks cross linked images...Haack says the difference is clear :) alt text http://haacked.com/images/haacked_com/WindowsLiveWriter/MVCandMVPPatternResources_71CE/WinMerge%20-%20%5BMVP.txt%20-%20mvc.txt%5D_3.png

like image 111
Allen Rice Avatar answered Feb 15 '23 22:02

Allen Rice