Thoughts on refactoring to improve the design of existing code

Source: Internet
Author: User

I recently read "Improving refactoringCodeThe design of this book, deep feeling.

In the past, when I learned programming, I saw that the code written by others was very elegant, but I couldn't write it myself. At that time, I lamented that my level was limited. After more than three years of work, the function is faster and there are many solutions to the problem, but the code written is still so ugly. Sometimes I feel that I am not suitable for programming, and the code I write is so ugly that even if the function is implemented, I feel uncomfortable.

By chance, I read the book "refactoring to improve the design of existing code" and found a way to write beautiful code, so I immediately started to transform the code I had previously written. After the change, I found that the original looks much better. Then I fell in love with refactoring. Hope that the code you want to improve is ugly.ProgramMembers can take a look at this book (I am not an advertisement but a personal experience ).

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.