Sunteți pe pagina 1din 4

REFACTORING

Definition: Refactoring is a disciplined technique for

restructuring an existing body of code, altering its internal structure without changing its external behavior.

Refactoring does not add new functionality to the system, but it will ease the further adding of new functionality.
1

Refactoring

Refactoring

Refactoring is done to: improve code readability & comprehensibility simplify code structure, improve design quality improve maintainability improve extensibility.

Refactoring

Levels of Refactoring

Data

level refactoring Statement level refactoring Class implementation refactoring Class interface refactoring System level refactoring

Refactoring

Class interface refactorings


convert one class to two eliminate a class Hide a delegate Remove a middle man Collapse a super class and implementations are very similar

sub

class

if

their

Refactoring

S-ar putea să vă placă și