This is a created article in which the information may have evolved or changed.
Blink of an eye 4 months of work, let me rejoice in the work, I have been exposed to always let me forget the go language. When I was a student, I was interested in the new language, but it was just a scratch. In these 4 months, the understanding of the go language from scratch, slowly deepened, I feel it more beautiful. Even my love for it goes beyond the C # that accompanies me.
The majority of the project team is the great God who wrote the kernel program, which makes the object-oriented concept not obvious in our current program. This undoubtedly gave me a big treasure, these not yet designed places, let me have the opportunity to achieve a reconstruction and transformation. Deepen your understanding of object-oriented.
I am a toddler learning the Go language and object-oriented, I am full of surprises every moment. This also makes me a thought, I want to use the go language to achieve 23 classic design patterns, in the code, the real understanding of the wisdom of the predecessors.
I started my process by flipping out that big liar design pattern and borrowing a "refactoring and model" from the company library. I don't know how many of these 23 patterns can be implemented in the go language with my ability, and do my best.
These articles, a great reference to the "Big Talk Design Model" in the story. The current implementation is the classic example inside. I still remember the first time to hold this book, and classmates with relish read that sentence: "Drink singing, life is really cool" when the joy and excitement, this book let me first know the beauty of programming, design beauty. Often in the heart recite this sentence "Caocao" poetry, I always think of not far away to the happy campus era.
Since many examples are escaping from the book "Big Talk Design mode," Please contact me if you are involved in copyright issues, I will replace the example.
The current implementations are:
1. Policy mode
2. Simple Factory mode
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.