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
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, MV
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.
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 through the interface.
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 through the interface.
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
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
, and of course, we don't have to rely on the popular MVC framework at all. Let's look at a picture below:MVC's view works directly with the model, and the controller only acts as a "bridge", which is responsible for forwarding the view request to the model and then notifying the view of the end of the model processing message. A controller is a message dispatcher. Without passing data (business results), the controller is used to decouple the view and model, specifically to separate the UI from
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 MVC is detailed:
Summarize:①, the use of MVC design patterns, so that the project has a very good scalability and maintenance.②, contro
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)
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)
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)
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
common presentation modes:
(1) MVC: Model-View-controller, which forcibly separates input, processing, and output of applications.
(2) MVP: Model-View-presentation class (Model-View-presenter)
(3) mvvm: Model-View-view model (Model-View-viewmodel)
(A) Development Process: MVC-> MVP-> mvvm
(B) MVC->
began to breed debate and variant models such as M-V-XXX, such as MVP and MVVM here, and even MVP also has Supervising Controller and Presentation Model two ways. but there are two main problems: first, the relationship between model and view is completely isolated? Unidirectional or bidirectional? Second, what functions does this "XXX" need to complete and simp
debate and variant models such as M-V-XXX, such as MVP and mvvm, and even MVP also have two ways of supervising controller and presentation model. but there are two main problems: first, the relationship between model and view is completely isolated? Unidirectional or bidirectional? Second, what functions does this "XXX" need to complete and simple process sched
program, web or even mobile), and MVC is available. with MVC, it seems that the debate and variant models such as M-V-XXX, such as MVP and mvvm, and even MVP also have two ways of supervising controller and presentation model. but there are two main problems: first, the relationship between model and view is completely isolated? Unidirectional or bidirectional?
available. with MVC, it seems that the debate and variant models such as M-V-XXX, such as MVP and mvvm, and even MVP also have two ways of supervising controller and presentation model. but there are two main problems: first, the relationship between model and view is completely isolated? Unidirectional or bidirectional? Second, what functions does this "XXX" ne
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.