What Is Refactoring?

The saying “hindsight is 20/20” refers to the clarity one has about a situation after the situation has passed. A similar thing can be said after an application has been coded. The code design an application should have been built with becomes much clearer after the application has been coded.

In its strictest sense, refactoring is a controlled process of modifying and improving existing code while not changing the external behavior of the application. Refactoring is done in a way that minimizes the introduction of new bugs while changing the design of the code. Hindsight in this case provides clarity on what classes and methods are necessary, where code bottlenecks appear, and how the maintainability and scalability of ...

Get Borland® JBuilder™ Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.