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?
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With