Refactoring exercises in Java
Asked Answered
W

3

7

I have just been through the following paper and I found it extremely useful: http://www.objectmentor.com/resources/articles/Clean_Code_Args.pdf

I am looking for similar papers/books/tutorials/etc. that provide step-by-step practice on refactoring and/or correct class design. I have read Fowler's “Refactoring”, but I was looking for more substantial examples.

Whist answered 21/3, 2012 at 9:56 Comment(1)
Maybe better suited for Programmers or Code Review.Sandglass
T
5

You probably won't find much resource about refactoring large examples step by step. Because you can never cover all types of example.

The reason Martin Fowler use small and easy example in "Refactoring", is because almost every large chunk of bad code are a combination of different bad smell. By learning how to recognize particular bad smell, you can fix the code gradually.

I will recommend you check Working Effectively with Legacy Code. It's a book that focus on the strategies to improve large legacy code. For class design, you probably want to read some books about design pattern.

Most important, try to apply things you learn in the book to your code.

Tryparsamide answered 21/3, 2012 at 10:35 Comment(0)
S
2

The proof of the pudding is in the eating. Apply the principles you've learnt to the codebases you're working on.

Stative answered 21/3, 2012 at 10:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.