Refactoring

Exercises

Refactoring

1. Smells and Refactoring

In these exercises, you will try to identify Code Smells in some sample code, and apply one or more Refactoring Techniques to remove them:

Important: Code refactoring is the process of restructuring existing computer code without changing its external behavior. It's important to understand that, although automatic tools exist, the purpose of refactoring code is not to automatize the restructuring process but to systematize it.

In small examples, you might not fully comprehend the importance of refactoring, but in large projects, having step-by-step instructions is of paramount importance.

2. Download and Import

Download the sample code and open it in IntelliJ.

3. Find Smells and Refactor