Refactoring streamlines the development process and generates financial savings in software development practice.
Transforms clutter into clean code and simple design.
Extract method is one of the most common refactorings. Whenever you have a very long method that performs several activities, you should refactor it.
Several methods do similar things, but with different values contained in the method body.
With the application of Extract Classe, we will have the separation of data in different classes
Extend whenever new types of objects appear.
Create methods that assign and return the value of the attributes of a class.
Refactor when a subclass only uses part of a superclass interface or doesn't want to inherit data.
Refactor whenever you have an attribute of a class that presents additional information.
Creation of a class that will better represent the information contained in the parameters and later, replace them.
Find default values and replace with constants.