"Design Patterns" Initial Overview

      I have been studying the book "Dahua Design Patterns" for a long time, and the interpretation of the classic patterns is still in progress. Now I will make an initial summary of the learning content at this stage. The specific content is as follows.


1. What is a design pattern?

        A design pattern is a set of repeated, widely known, categorized summaries of code design experience.

Second, the purpose of using design patterns?

         For code reusability, making the code easier for others to understand, and ensuring code reliability. Design patterns make code writing truly engineering. Through these patterns, you can find the feeling of "encapsulating changes", "loose coupling between objects", and "programming against interfaces", so as to design easy maintenance, easy expansion, easy reuse, and flexibility good program.

3. Summary chart

        The book "Dahua Design Patterns" explains 23 design patterns and 6 design principles. The following is a brief diagram, and the details will be left to the next blog.

                                             

                                

                                             


The feeling of reading this book

       This book starts from daily life scenarios, and the explanation of design patterns is not separated from our lives, but also embodies the characteristics of high cohesion, low coupling, easy reuse, and easy expansion that need to be adhered to to develop a good piece of software. Especially in the last OOTV Cup Super Mode Contest, it wrote humorous and explained each mode in detail again, and also provided a characteristic interpretation of the pairwise comparison between modes, which deepened my understanding of modes. Of course, for now, only my familiarity with the application scenarios of patterns needs to be strengthened, and for the application of patterns, I believe that practice makes perfect in the next stage. Finally, no matter what content you learn, when you invest enough per unit time, then you are familiar enough with the content and will be more willing to learn. Similarly, no matter what content to learn, if the battle line drags on for too long, the familiar content will become unfamiliar, and the progress will be difficult, and then you will not want to learn, so the next step is to strike while the iron is hot!


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325962346&siteId=291194637