Computer room charge System (vb.net) Personal Edition Summary

Source: Internet
Author: User

Reconstruction version of the personal computer room charge system probably from the beginning of the summer holidays. It took less than 1.5 months to finish. Here's a written understanding of my refactoring process.

1, the system design a very important purpose is to reuse. And to do reuse, low coupling is the most effective means to recall the entire learning process of our C/s, we can find. From the beginning of the VB version of the computer room charge system, and then to now vb.net version. design mode, layering the system. The process is to decouple the system. to decouple, the first thing you need to do is abstract.

Encapsulate multiple, repeated code. The remainder uses inherited or polymorphic ideas for use.

In the computer room charge system we are involved in a number of decoupled ways:

I don't know decoupling can not understand this, for example:

High-coupling sample: Tell the user what the system is for. And the user knows some design inside the system.

After decoupling, the user only knows what the system is for, and does not know how the system is executed inside, how to design

2, in the process of reconstruction. Add design patterns, stored procedures, views or transactions, to these things to study first, to test, to understand is one thing, will use but there is also a matter, spend a lot of time to see, the brain think, never better to put these things into code to understand the fast.

The process of refactoring will certainly have a lot of problems, to find students to help solve this problem is the premise that you must have a certain understanding of your question, and then put forward your questions on this basis, and then let the students help you; Suppose you just come into contact with a problem, without your own understanding, let the classmates help you solve. So the final result is. You might understand that most of it is built on the minds of others, not your own.

Personal refactoring. Add what you can add, some people say. First of all do not add, wait until the cooperation of the time, I want to say, now you do not want to learn these new knowledge. When working together, you still have to spend the same time or a lot of other time to get to know the new knowledge, and the debt you owe is always paid.

Computer room charge System (vb.net) Personal Edition Summary

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.