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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.