Contact Me

Refactoring Techniques

 Refactoring streamlines the development process and generates financial savings in software development practice.

 Transforms clutter into clean code and simple design.

Extract Method

 Extract method is one of the most common refactorings. Whenever you have a very long method that performs several activities, you should refactor it.

Parameterize Method

 Several methods do similar things, but with different values contained in the method body.

Extract Class

 With the application of Extract Classe, we will have the separation of data in different classes

Replace Conditional Command with Polymorphism

 Extend whenever new types of objects appear.

Encapsulate Field

 Create methods that assign and return the value of the attributes of a class.

Replace inheritance with delegation

 Refactor when a subclass only uses part of a superclass interface or doesn't want to inherit data.

Replace Attribute with Object

 Refactor whenever you have an attribute of a class that presents additional information.

Introduce Parameter Object

 Creation of a class that will better represent the information contained in the parameters and later, replace them.

Replace Magic Numbers with Symbolic Constants

 Find default values and replace with constants.