I also designed the model -- 0. Preface

Source: Internet
Author: User

This also refers to the mode, which also refers to the mode. To be honest, none of them understand all the 23. Except for gof, after all, people write together and each person writes the best of them, so the book has succeeded. As for others, most of them are proficient in only a few of them, so they have published a book, and their unfamiliar models have been copied to the Internet, you can copy it well. At least the reader can understand it. If you do not copy it well, you can skip the question.
Recently, I have discussed several models in the company, tiger, and Will every week. They work on C ++ and I work on C #. There are many differences, but in terms of models, as long as it is Oo, there is still consensus. The three weeks involved ten models and found that the discussion was really a good thing, much better than a person's own efforts there. So I posted the essence of the discussion, saving me from forgetting it later.
The pattern is art, not technology. It is like the original book of the classics, rather than the martial arts. It requires insights and precipitation. My research model has been on and off for two years. The general schedule is as follows:

In Shanghai 2005.11, the Book City opened the. NET design pattern, which started the path of my pattern. This book, alas, has no source code, and the code written in the book is not complete. It took me a month to read the two concepts of factory and single piece, but nothing else was remembered. Because I was still in the transition from VB6 to C # At the time, I went to Shucheng Tao to return an American book "VB design mode". At the same time, I used VB6 and vb7 to explain how it was simple and profound, after reading about it, I did not insist on reading it. This time I played the observer and facade.
2006.1-2006.2 during this period, the study of issuevision, The smartclient used the observer and the imperative, but the implementation of these two models is more clever than what is described in the book.
From 2006.4 to 2006.5, we started our 2nd model tour. This was a one-on-one tour, and we also applied simple factory and flyweight to our own projects. However, the essence of some models is still unknown. A sentence is written in the book, and you can see it at a Glance. However, the profound meaning of this sentence is missing. Many of the Notes were made at the time. At the same time, I started to fully engage with OO modeling. I had the concept of interface-oriented programming, Although I never used it.
2006.7 A smartclient was created this month, and it was found that the observer is really a good thing and solved the problem of communication between forms.
In 2006.10, I stopped my job this month and studied gof's original English version of "Design Pattern" without leaving home in my hometown. I tried 23 pattern again. A lot of gains have been made. Many questions have been found in the book and come into use with MVC.
2006.11-2006.12 resigned and did not rush to find a job. Instead, he wrote a long-brewing project open-source-the chess and Card System in the network Hall, and serialized Communication Based on C # asynchronous multi-thread socket, the pendulum is designed with flyweight, and the whole system is modeled with OO ideas. The form communication uses observer. Different games are implemented with strategy, and the socket uses a single piece to keep it unique, in short, the coding of one and a half months has deepened my understanding of OO and models.
2006.12-2007.2 during this period of work, I went through a huge "surface" and almost all of them were admitted to the model. The observer asked the most, such as generators, abstract factories and reflection factories. It can be said that the interview has consolidated many concepts that are not too familiar to me.
2007.3 so far, the new company has stabilized, summed up the interview experience, and found that he is still unfamiliar with the model UML diagram, so he began a new round of Filtering for 23 models, start horizontal comparison at the same time, that is, the relationship and difference between the modes.

As for how to write my blog in this column, I don't want to write a book anyway. Therefore, every article I write is basically the result of my discussion with my colleagues at the company, at the same time, we are exploring the strengths of the masses on the internet, making horizontal comparison and vertical deepening. In short, it is my final goal to describe the pattern.

My discussion is Based on. NET 1.4322.

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.