Refactoring-improving the design of existing code-this book was bought half a year ago and has been placed on the company's desk. It's just half a year. It's really a sin to think about it now.
It took so long to read it. On the one hand, it was lazy and neglected. Another major reason is that this book is too theoretical and somewhat out of reality. However, after I actually read it, I found that this book was not as theoretical as I thought, and its operability was still very strong.
The reason why I really started reading was the drive of my work, because the previous work was to restructure an existing project, and I also participated in the design and development of the existing project. Due to the time constraints of the previous project, there are many problems in both design and coding, which is a good reconstruction goal. Now, I really want to thank the supervisor for giving me the opportunity to host this restructuring job.
Back to this book, this book is obviously not just writtenProgramHowever, this does not mean that beginners cannot absorb nutrition from the book, but they will make some discounts. Because it is impossible for beginners to fully understand all refactoring strategies, but they can learn a lot.CodeFor example, do not use a function that is too long, break it down, or introduce too many temporary variables.
If you have learned the design model and have good project/coding experience, you can absorb more nutrition from this book, and the reading difficulty will be much lower, of course, this book is very attractive.
With the reading of this book and the Development of reconstruction work in the project, I will learn more about the small methods mentioned in the book: these small methods do not seem to allow me to see farther, and cannot help me design, however, when you follow the specifications, you will find that you see more clearly, see farther, and the design will follow.
With the development of the reconstruction work, there is also a deeper experience, that is, many designs are not just imagined at the beginning of the project, but are gradually restructured and reconstructed, I believe it even more deeply, as if I have seen it here.
Another plug-in vs is very useful, coderush + refactor. Of course, resharper is also good. I use CR To Help Me refactor.