MVC and MVP in the end what difference does it make?

MVC and MVP in the end what difference does it make?
 
MVC full name is the Model View Controller, is a model (model) - view (view) - abbreviation controller (controller) of
MVP stands for: Model-View-Presenter; MVP is evolved from the classic MVC pattern comes, they have in common is the basic idea of places : Handling Controller / Presenter responsible for logic, Model provides data, View is responsible for displaying.

The MVP is the further transformation of the MVC to Andorid, is really hard to distinguish in MVC Activity in the end should be in the role of V or C, as the activity that is included interface also includes part of the logical process.

MVP to further processing occurs is the separation of business logic and interface. In the MVP, M, and V is completely cut off, the master control performed by the P.

When a V operation is received, the request is transmitted to the corresponding P, P, and the service processing interact with M, at the same time to view and update P (interface / callback method / event) at the right time

Such an interface is exposed only V, P and V through the communication interfaces, on the one hand can be transferred to the business logic P, on the one hand through the interface may be adapted such that a plurality of P V.

Guess you like

Origin www.cnblogs.com/xingkongzhizhu/p/11080814.html