Hello, I and Pu Yi.
This time, let's learn design patterns with Hiroshi Yuki's book. I did.
The reason I picked up this book was a recommendation from an information-related friend. It was because I had a problem. "Because it is absolutely useful in practice" I swallowed the taiko stamp and picked it up with a big surprise. It depends.
The first thing that came to my mind was "What is a design pattern?" thing I said. This was explained at the beginning of this book.
"When I'm programming, I do the same thing as before. There are times when I notice that I'm turning back. Experience As the number increases, the next development of such "patterns" (….) You will be able to apply it to. Erich Gamma, Richard Helm, Ralph Johnson, John The four Vlissides have the "experience" of such developers The pattern as "internal accumulation" "Design pattern"
I arranged it in the form of. "(From" Introduction ")
In short, design patterns are like "wisdom of ancestors" Things. Also, something like a "common language" between developers, That is. By the way, the four people who devised the Gang of It seems that it is called Four (GoF). looks strong.
This book is one of the 23 design patterns defined by GoF. I'm introducing each one by showing an example in a Java program. I will. The chapters are as follows.
・ Copy the program posted as a sample by yourself And ran →→ As expected for each of the 23 design patterns I was able to move to ・ Explain which class plays what role I tried to read and understand
・ Solve the leftover exercises at the end of the chapter ・ Learn how Java programs work
If there is a supplement to my article or "what I want to do in the future" If you have any recommended books for, please leave a comment. I would be happy if you could! … so, that's it for today. It was Puyi.
Recommended Posts