MVC is not a design pattern, but a design idea

Source: Internet
Author: User
MVC is not a design pattern, but a design idea.
Design pattern: is a fixed method, not flexible, there is a specific applicable scenario.
Design idea: is a kind of thought, more flexible, by a variety of design pattern combination realization.
MVC Design Ideas:
V (view): The main function is to display the data. (The main data can be, do not care about the data source.) (A want to drink, as long as there is water, do not care about the source of water)
M (Model): The main function provides data,. (mainly used to provide data, not care about who the data is to show). (The controller is responsible for giving m data and then controlling which view to display) (The dispenser is only responsible for providing water, but does not care who drinks the water)

C (Controller): The main function of coordination V and M. As a bridge between V and M. Mediation (b go to the water dispenser and give the water to a);


Abstract Factory design Pattern:
Provides an abstract base class, (providing basic functionality), using a concrete base class when used

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.