Data Center reconstruction (1) -- UML diagram, Data Center reconstruction -- uml diagram

Source: Internet
Author: User

Data Center reconstruction (1) -- UML diagram, Data Center reconstruction -- uml diagram

Finally, we started restructuring. Data Center reconstruction is a very important small project at this stage, because it involves all kinds of knowledge we learned during this time. First, we used the knowledge of softwares, write the document before development, and then use the UML diagram. The main development environment we reconstructed this time is VS, which involves the videos C # And. net knowledge. Finally, it is the comprehensive use of design patterns and layer-3 knowledge. Therefore, reconstruction is a trial stone we have learned at this stage and an important node for us to build a knowledge network.

The document mainly refines and supplements the previous steps, especially the descriptions of some flowcharts and sequence diagrams. After a few days, I finally finished the reconstruction of several pictures. Based on this requirement, I mainly drew package and class diagrams. As for the sequence diagram, I want to draw it later, this is mainly because the ideas for restructuring are not very accurate. First, do the most basic things (of course, the sequence diagram is also basic ), after you have a certain understanding of its development process, you can draw a picture to help you control the entire process.

Package diagram:


The package diagram mainly draws on the experience of the teachers and sisters and develops from a simple three-tier architecture to a seven-tier architecture. The UI, BLL, DaL, and Entity classes have been introduced before, so we will not introduce them here. Now let's take a look at several other types:

Facade, it also enhances code reusability.

Factory: Abstract Factory mode. This is a very important mode. For example, if a problem occurs in our current database or the database needs to be changed due to a certain requirement, the abstract factory mode can be easily replaced.

IDAL: interfaces are used to reduce Coupling Between Layer B and layer D and avoid confusion caused by direct operations on the database by layer B.

Class diagram:


Summary:

When you start refactoring, you have no idea what to do first and what to do later. Through this drawing and the improved documentation, I feel like I am learning three layers, maybe I don't know how to learn and how to implement a demo. However, in any case, you just need to grab a line and proceed. Now we are just getting started. We have already realized the concept and importance of "line". This system will bring us great gains.

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.