Thoughts on Architecture

Source: Internet
Author: User
In the past few days, I have read John Vlissides, one of the GoF's books "design pattern thinking" and excerpted an email from Richard Helm in the preface written by James O. Coplien for this book:

GoF's design model only addresses micro-architecture ). You still have to design the macro architecture: hierarchy, distribution, function isolation ....... And, as Ghost said, you still have to design the nano-architecture: encapsulation, liskov .......

I agree with this method of dividing the architecture based on the design granularity. Strictly speaking, software design can also be seen as part of the architecture. From marco-architecture to micro-architecture to nano-architecture is a top-down design granularity. However, in the architecture process, we do not have to go from the macro to the micro, to more specific details. These architectures are actually equal. These granular architectures seem to have some Xuan AO principles and design spirit throughout. I think that if we can grasp the context between them, or even connect them together in some way to form an organic or integrated architecture, for our architecture and design, it will undoubtedly bring great help.

Over the past year, I have been thinking about the basic ideas and principles behind design. In complicated models, we are easy to lose ourselves, either suffer from model problems, or become unable to select models, or simply despise models, perform brutal construction according to your own method. Unfortunately, this type of brutal construction can sometimes achieve good results. However, this undoubtedly falls into an anti-pattern trap similar to "programming by coincidence". I call it "Designing by coincidence", that is, in the project or product design process, by accident, the design was successful, which gave the designer the illusion that he was looking for a final shortcut to "let the whole world go.

My thinking on design includes seven aspects: "reuse, expansion, change, separation, simplicity, consistency, and indirect ". I have also elaborated and shared my ideas at many meetings (of course, these ideas are not my original ideas. Many of them are actually recognized by the industry as principles, I just want to be able to explain the architecture and design proposition in an integrated manner .) However, due to my own experience and capabilities, I have not been able to better summarize them. My understanding of the design model (the so-called micro-architecture) is a bit confident. I am also familiar with the basic principles of OO (the so-called nano-architecture, however, there is still a lack of confidence in the macro-architecture. I have always felt that my summary is scattered. The design principles I pursue should be like the spirit of prose, so that they can be "dispersed but not dispersed ", the current understanding of the design lacks a chain that can comply with the rules similar to the operation of celestial bodies. Richard Helm's description of the Architecture opens a window for me.

In addition, through the product R & d I have been responsible for over the past few months, my understanding of UML has become closer. I feel more and more help from UML for architecture and design. As Craig Larman's famous book Applying UML and Patterns, UML and pattern can be combined more closely. The importance of UML is self-evident. If someone despise it or despise it, in the final analysis, it must be misuse or misuse of UML. UML is a tool, but unlike a common tool, it can inspire our design. For example, an example graph can help us identify roles and scenarios, and help us find elements that can be reused. Component diagrams are undoubtedly within the scope of macro-architecture. They help us understand encapsulation and loose coupling, and help us define services. I don't think from the very beginning, we can only use component graphs to divide modules. After all, in many cases, it is difficult for us to completely break down modules. However, if the component diagram can be reasonably used, the division of modules will undoubtedly become much easier. At the micro-architecture level, I especially like sequence disequence. In my mind, it is even more important than test-driven development. Combined with the use case diagram, it can help us find the Order and method of object collaboration, help us find the abstract and interface, and of course include the responsibility of the object. We can also properly combine the ICONIX method and the prototype to help us understand the use case scenario, finally, find the business objects that need to be involved in this scenario, and should be appropriate.

From the perspective of architecture, we need to combine top-down and bottom-up methods. In addition, we must follow the principles that all hierarchical architectures should follow, such as high cohesion, loose coupling, and separation of concerns. I am thinking about these basic principles. It seems that I am looking for a chain of nano-architecture, micro-architecture, and macro-architecture? If so, how should we use them. After all, for most designers, these principles are too vague and abstract to fall into the "Tao" of Xuan AO. The architecture and design naturally have their own advantages and disadvantages. However, it is not conducive to the improvement of the designers if they blindly resort to xuanxu. Therefore, for me, I hope to provide a large number of cases to prove these principles. More importantly, it is not evidence, but guidance. Good examples can even be called exemplary examples, by presenting these exquisite principles, our developers can understand and understand the advantages of design. This is what I want to do.

To do this, I must improve my architecture and design. However, I thought that I almost had to find the entrance to the classroom. I hope I can find it one day earlier!

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.