Refactoring in Java

I just went through the following article, and I found it extremely useful: http://www.objectmentor.com/resources/articles/Clean_Code_Args.pdf

I am looking for similar documents / books / textbooks / etc. which provide a phased practice of refactoring and / or proper class design. I read Fowler's Refactoring, but I was looking for more substantial examples.

+6
source share
3 answers

You probably won't find many resources for refactoring great examples step by step. Because you can never cover all types of examples.

The reason Martin Fowler uses a small and simple example in Refactoring is because almost every big piece of bad code is a combination of another bad smell. By learning how to recognize a specific bad smell, you can fix the code gradually.

I recommend that you check Effectively work with outdated code . This is a book that focuses on strategies for improving large legacy code. For class design, you probably want to read some books on the design pattern.

Most importantly, try applying the things you learn in the book to your code.

+5
source

The proof of the pudding is food. Apply the principles that you have learned to the codes in which you work.

+2
source

Source: https://habr.com/ru/post/911278/


All Articles