Why is there no MVC in the 23 design patterns of Gof?

Source: Internet
Author: User

GoF (Gang of four, foursome, "design patterns:elements of reusable object-oriented Software"/"Designing Mode" a book of Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides, does not refer to MVC as a design pattern, but rather as a set of classes for building user interfaces. in their view, it is actually the evolution of the other three classic design patterns: The Observer Pattern (Observer) (pub/sub), the Strategy mode (strategy), and the combo mode (Composite). The Factory mode (Factory) and Adorner (Decorator) modes may also be used depending on the implementation of MVC in the framework

As we discussed, models represents the applied data, and views handles the content displayed to the user on the screen. To do this, MVC is based on the push/subscribe model on Core communications (which is surprisingly not mentioned in many of the MVC articles). When a model changes it sends an update notification ("publishes") to the application of the other module, the Subscriber (Subscriber)-usually a controller, and then updates the corresponding view. Observer-This natural observation relationship facilitates multiple view associations to the same model.

One of the goals of this model is to build a one-to-many relationship between a topic and its observers for interested developers who want to learn more about decoupling MVC (depending on the implementation). When the subject changes, its observers will be updated. Views and controllers have a slightly different relationship. Controllers help views to different user input to do different responses, is a very good model of the strategy.

http://damoqiongqiu.iteye.com/blog/1949256

Why is there no MVC in the 23 design patterns of Gof?

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.