01 Refactoring _ Improve the design of existing code one of the reading notes

Source: Internet
Author: User

01 Refactoring _ Improve the design of existing code one of the reading notes

Refactoring _ Improving the design of existing code this book introduces the principles and best practices of refactoring, and gives you the time and place to start digging code for improvement, each of which introduces the motivations and techniques of a proven code transformation technique.

Refactoring, is definitely one of the most important things in the process of writing a program. Before writing the program we can not understand all the requirements beforehand, the design will certainly have a poorly considered place, and as the project needs change, it is possible that the original design has been changed beyond recognition. What's more, we seldom have the opportunity to complete a project from start to finish, basically to take over someone else's code, even if the project is from scratch, it is possible to inherit the code of the other team members. We all have this experience, see other people's code feel like excrement, there is a strong desire to rewrite the impulse, but must suppress this impulse, you completely rewrite, may be better than the original, but a waste of time not to say, it is possible to introduce the original non-existent bug, and, you are not necessarily better than the original design, Perhaps the original design takes into account some of the things you have not considered. We write the code, will someday be taken over by others, it is likely that others will have the same impulse as we are now. So, what we're going to do is refactor, start with a small-scale refactoring.

This book gives a very practical example, and there is a detailed code introduction, so that the reader is easier to understand, from the moment just contact with computer software, not very understanding of the process, now or learners, have not in-depth understanding, may later back to read there will be unexpected results.

01 Refactoring _ Improve the design of existing code one of the reading notes

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.