Design Pattern-see the essence
The design pattern is very easy to thinkTall.
In fact, it is really good, but it depends on whether you can understand its nature.
You only need a novice sword and a cloth shirt to use your skills and skills to defeat countless opponents.
What is the design pattern? I will not repeat this explanation on Baidu.
But let me say, design patterns,It is a way of thinking to solve problems, not a specific method.
Are the two similar?
The specific method makes it easier for people to go into a strange circle of "deliberate imitation" and further turn into a targeted thinking.
The problem-solving thinking is completely yours. The Way of Thinking generated by your heart eventually reaches the realm of standing in the dark and hiding.
I am still working hard on this road and would like to share with you a little bit
As mentioned above, the three books mentioned here are described as follows:
-------------------------------------------------------------
Books:Big talk Design Model
Douban rating: 8.3
You can take a look at this book if you have time. Douban still provides a relatively high score, probably because the author of this book is still very careful about the humorous explanation of every example, in addition, it is not difficult for people who do not fully understand the design model to accept it, for example, examples of "Planting fruits and learning lessons". They are close to life and have an interesting image.
But the biggest problem is that there are not many ways of thinking, so the reader can only be "I admit that I understand the example you mentioned, but I don't know how to use it in development ", right, after all, during normal development, so many of my experiences are management systems, e-commerce websites, mobile phone development, etc. How can I use the examples of those "apple pears? Especially for readers who read this book, they tend to prefer getting started. After reading the book, they only know how to "plant fruit", but do not know how to convert fruit into specific functions of the project.
Therefore, this book is suitable for those who do not know enough about the design model. After reading it, if you really want to use it, please read another deeper book.
-------------------------------------------------------------
Books:Grinding Design Mode
Douban rating: 8.1
This book is a concise design model that I have read into the middle layer. It also has some practical project values, so Douban also gives a good score. There are fewer examples of similar fruits in this book. I prefer to talk about some ideas and optimize some methods on my own. In particular, the examples are examples of a large number of project functions in production and development, this example makes sense even if it is "copied" than the previous example of fruit cultivation. In addition, the author's story also teaches you how to use the design pattern more flexibly.
-------------------------------------------------------------
Book: design patterns: the basis for reusable Object-Oriented Software
This book is the deepest reference of the design model. I am afraid to comment on it more. Douban has 9.1 points, and industry ratings are also good, the words I have mentioned in this article are all nonsense.
After talking about three typical books, I will summarize my current feelings:
Do not "Apply" a certain mode
For example, some children's shoes often care about how a certain parameter or method must be like that. If I change it, is it wrong? Is it true that I must follow a certain pattern in production and development? It has several parameters and several methods. I have to keep none of them down, otherwise, it will be "unorthodox" and it will not be a design model.
Never tangle with this problem!
Whether you "use" A design pattern or not does not care whether you have written the code format that "looks like" it, but whether you have used his idea to accomplish its purpose, for example, whether it has achieved the same good scalability, good readability, and high cohesion and low coupling principles. As long as there is, that's right.
How many design patterns are there?
I have been checking it all the time and even memorized it like a back-to-back ancient poem. It seems like a back-to-back is like getting all the equipment in the game, and I am nb.
Actually not. Later I discovered
When you are really skilled, it doesn't matter how many of them are actually there. Because of the changing nature, you can say that there are 100 of them, or you can say that there are only one or two of them.
In fact, you only need a novice sword and a cloth shirt to use your skills and skills to defeat countless opponents.
Welcome to my personal homepage and we are willing to actively share with you:
Http://blog.guaidm.com/shocky