View.3. The Controller is very thin and only acts as a route, and the view is very thick and the business logic is deployed in view. Therefore, Backbone simply cancels the Controller, leaving only one Router (router).Four, MVPThe MVP mode renamed Controller to Presenter and changed the direction of communication.1. The communication between the parts is bidirectional.2. View and Model do not contact, are passed through Presenter.3. View is very thin
controller (changing the URL to trigger the Hashchange event) and then sent by the controller to the View.3. The Controller is very thin and only acts as a route, and the view is very thick and the business logic is deployed in view. Therefore, Backbone simply cancels the Controller, leaving only one Router (router).Four, MVPThe MVP mode renamed Controller to Presenter and changed the direction of communication.1. The communication between the parts
Preface descriptionIn the actual combat project and study to summarize the Android Terminal Project frameworkIncludes MVC, MVP, MVVM, primarily for mobile AndroidDirectory1. Framework Basics2. Transverse frame model3. Vertical structure Process4. Code examples1. Framework BasicsMVC ArchitectureBasic notes:1.model model, responsible for handling specific business logic2.view view, responsible for displaying
MVC:
The user's request will first arrive at the controller, where the Controller obtains data from the model, selects the appropriate view, and presents the processing result to the view;
MVP:
The user's request will first arrive at the view, and the view will pass the request to the specific presenter. After the presenter obtains data from the model, it will pass the processing result to the view thr
MVC:
The user's request will first arrive at the controller, where the Controller obtains data from the model, selects the appropriate view, and presents the processing result to the view;
MVP:
The user's request will first arrive at the view, and the view will pass the request to the specific presenter. After the presenter obtains data from the model, it will pass the processing result to the view thr
Mvc:
Definition of MVC:M: Business logic processing. "Business model"V: The part that handles the display of the data. "such as XML layout file"C:activity handles user interaction issues. "Activity in MVC plays the role of C."
Features of MVC:① and low coupling.②, scalability is good.③ and module responsibilities are clearly divided.
An example of
On the differences and relations between MVC, MVP and MVVM architecture patternsStudied: http://www.cnblogs.com/guwei4037/p/5591183.htmlhttp://blog.csdn.net/ttf1993/article/details/49405329Mvc:model->view->controller->modelMvp:view Mvvm:view (Viewcontroller) Using ViewModel to implement two-way binding of views and models;On the differences and relations between MVC
Preface descriptionIn the actual combat project and study to summarize the Android Terminal Project frameworkIncludes MVC, MVP, MVVM, primarily for mobile AndroidThis article uses the Android platform user login As an example to describe the architecture pattern in codeThe code is primarily understood, so it may not be complete, as it removes some of the streamlining and convenience instructionsDirectory1.
worrying about the model layer's need to change the test, or you can change the model layer implementation to another way, regardless of the view problem.While MVVM is also an improvement to MVC, which is also about view and model decoupling, but the form is different, it needs to be noted that there is a ViewModel framework to support the interaction between view and ViewModel. And the function of the ViewModel layer is the business logic, when bind
embodiedPresentertheModelone-way invocationViewand thePresenterThe way to interact with each other is the entireMVPthe core,MVPWhether the original intention of the separation of concerns can be embodied in the specific application depends to a large extent on the correctness of the interaction between the two. FollowViewand thePresenterthe way you interact with each other, andViewIts own terms of reference, wouldMVPdivided intoPV(Passive View) andSC(supervising Controller) two modes. 1.PVwith
1.MVCFeatures: unidirectional Accept the instruction: 1. Pass view, then pass to controller;2. Directly through the controller2.MVP, change controller to PresenderFeatures: bidirectional communication, presenter processing all logic, view thinning. 3.MVVMFeatures: similar to the MVP, the use of two-way binding, view changes automatically reflected in the ViewModel. Excerpt from: http://www.ruanyifeng.com/b
Mvc:Coupling is high, and view model controllers can access each other.Model View Controller.In Android
View corresponds to the layout XML file;
Model corresponds to data files or data bodies obtained by the network;
Controller corresponds to activity.
Get the data (model) in the activity (Controller) and show the data on the view.Activity separates the view from the model and binds and completes the logic in the activity.Mvp:M and V must be accessed directly through P, and M and V
IntroducedMVP This architecture has been the focus of discussion in the Android development community, and everyone has their own analytical understanding of the controversy. Until Google officially releases a project built with the MVP structure on GitHub. It feels like it's time to analyze.Introduction to the MVP architectureThis is not the focus of this article, so excerpt from Li Jiangdong's blog postIn
I. What is covered in this article (Contents)
What is covered in this article (Contents)
Original intention
What is Microsoft MVP?
What is the condition of being a Microsoft MVP?
How to become a Microsoft MVP?
(a) Time division of applications
(b) Pre-preparation
(c) Download/Fill out the application form
(d)
I. What is covered in this article (Contents)
What is covered in this article (Contents)
Original intention
What is Microsoft MVP?
What is the condition of being a Microsoft MVP?
How to become a Microsoft MVP?
(a) Time division of applications
(b) Pre-preparation
(c) Download/Fill out the application form
(d)
Google official MVP mode example project analysis todo-mvp, mvptodo-mvp
Reprinted please indicate the source: http://www.cnblogs.com/cnwutianhao/p/6700668.html
Introduction: before Google provides an authoritative architecture implementation, many App projects have more or less architecture problems. The first common problem is that there is no architecture. a p
In an article on CodeProject, several common modes of expression (presentation patterns) are described and compared. The original address is http://www.codeproject.com/KB/aspnet/ArchitectureComparison.aspx
Presentation mode (presentation patterns)
Review
For the MVP (Model View presenter) architecture evolved from the famous MVC (Model View Controller) architecture. And the development of Android applications can be seen as an MVC architecture. XML files are typically considered as view roles in MVC in development, while activity is considered the controller ro
will lead to chaotic responsibilities. It will access business logic and data, the interface display logic is stored in a piece of code, which is not conducive to code reading, maintenance, upgrade, or testing. Of course, if your project is very small.
Of course, the above is only from the perspective of layering, pointing out ASP. net, it does not constrain developers to pay attention to layering when writing programs, Asp. net advantages and other defects are not highlighted here.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.