Gof "Design pattern" ended

Source: Internet
Author: User

Design patterns one to 20 are Gof "Design patterns" Summary of the content, and use the PHP instructions to implement, Gof "design pattern" refers to the code is C + +. Examples are not particularly typical. These things have been summed up a long time ago, and now the word notes again, is a new understanding of the temperature. Some of the local descriptions may be incorrect, and more practical experience will be further modified in the future.

I am currently in the framework of the development project, the use of the model for the appearance of the model, proxy mode, adapter, and other modes, these are not for the mode of mode, the use of these patterns to organize code, to maintain and read the code of the people have great benefits.

We use these patterns early in writing applications to prevent later refactoring. Even after we build the application, design patterns can teach you how to modify the system if refactoring is needed. Design patterns are the only way to refactor, but not the ultimate goal.

You don't have to model for the pattern, and sometimes you want to use the strategy pattern once you encounter some three different calculations, but in fact, simple conditional expression programming is enough and easy to understand.

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.