After reading the Zen of design patterns

Source: Internet
Author: User

I was overjoyed and excited when I knew I had the opportunity to get this book. Because I used to learn the design pattern n times before, the four-person gang's design pattern was also borrowed from the library. I have never read it once, and I put it down after several pages. I feel that the design mode is terrible. However, it is what programmers have to learn, so they are deeply troubled. Sometimes, I often say to myself, "it's not the time to study the design model. I will naturally understand it when I have done several projects ." To say this, it is just to comfort yourself. I still want to learn about it earlier and use it well. At this time, I would like to find an entry-level book on design patterns. I first had a preliminary understanding of the design patterns, and then I went to see the so-called classic, but I never found a suitable one. When I saw this book, I was attracted by the introduction of this book:

If the design pattern of the four-person gang is the Bible in the Design Pattern field ", the various books published later may be called the "Comments" or "Bible stories" of the Bible ". This book is the "Zen" of the Bible. It is not as esoteric, obscure, or difficult as the Bible, because of the treasure of words such as gold and character, it is more profound and comprehensive than the "Comments" version of the "Bible", more popular and vivid, closer to the practical scenarios encountered by developers, and more instructive. This book is a milestone in the field of design patterns.

This is exactly what I want, and I thought I finally found it. I can finally understand the mysteries of the design model. After that, I was expecting this book every day, but I didn't get it in the next month. It's a hateful post office. Fortunately, Zhang Yan of huazhang quickly delivered a copy to me. Thank you very much. Although I have received a book, I have entered the busy period of graduation design. I work during the day and come back to design at night. This book is only half an hour every day after I turn off the lights. I have received the book for just two weeks, but I haven't finished it yet, but I have understood the writing style of this book. Let's talk about my feelings about this book:

This book uses small examples described in the Java language to show you the six major design principles and the Design Pattern in 23. After that, I made another expansion and came up with a major pk for the design model. what's even more gratifying is that the last part explains the practical application of the design model. If this chapter does not exist, I am a little disappointed with this book. Haha.

Advantages of this book:

1. Paper Quality

The quality of this book does not have to be said. The beautiful cover and the paper of the book are also quite good. It is definitely suitable for favorites.

2. wide audience

This book has a wide range of readers. Whether you have any programming experience, you can read this book, as the author says, if you have no programming experience, you can read this novel. But to put it this way, I believe that students with certain programming basics can understand it.

3. easy to understand and humorous

The reason why the author dared to say that students without programming experience could read this book as a novel lies completely in the story of the chapter and section of the author, which is very humorous, it can fully attract readers to follow the author's ideas. In addition, the author uses a fairly simple program to describe each mode, which is very easy to understand. I believe that anyone with some programming experience can understand it.

4. Detailed explanations

Compared with the 200-plus-page "Gang of Four" classic, the author is very generous. It seems that the words "mo Ru Jin" did not work for the author. ^ _ ^, The author explained each design mode in detail based on examples, and then I still felt quite uncomfortable. I also came up with a big pk for the design mode, through which readers can better understand each design mode. After the PK, the author seems to have enough physical strength, and explains the comprehensive application of the design model from the perspective of actual programming. It's really a big meal. It's just my taste.

Disadvantages of this book:

As the saying goes, there is no perfect thing in the world. If it is perfect, it certainly does not come from the earth. Haha! While everyone's appreciation for the beauty and ugliness is different, and their views will not be unified. I think the disadvantages of this book are:

1. Reading this book requires a certain degree of UML. This is really unpleasant. Although I have learned C/C ++, I know Java 0, but I can basically understand the code. Unfortunately, some of the class diagrams of the author are really confusing. Some class pictures mean that I don't understand what the relationship between some classes is, I am too lazy to see UML at present ,. I think it is better for the author to explain this. In this case, after designing a small example, the author can come up with a special section to illustrate the relationship between classes based on class diagrams, I think it will be better to further explain this model through these classes. If all the things let the readers look at the code, those without programming experience can only look at the excitement, but can only be left to those with more than two years of work experience.

2. I feel that the author's examples can be further explored. I feel that some examples are slightly more far-fetched and it will be better to go deeper.

In short, this book is a good book for learning design patterns. If you still think the design patterns are boring and difficult to learn, please read this book, it can bring you into the holy land of design patterns without knowing it, and let you continuously infiltrate the essence of design patterns. After reading this book and doing some exercises, I believe that you will not be afraid of the design mode, but can also use the design mode freely in your own projects, make your code design more flexible and wish you success ..

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.