You are on page 1of 5

Table of Contents

1. Introduction
i. Definitions
2. 1. Refactoring, A first Example
3. Principles in Refactoring

Book Example

Definitions

1. Refactoring, A first Example

Principles in Refactoring
Definition: To change amd modify the code internally to become more comprehensive and structure independent without
changing its behavior

#
2 hats: Refactoring & adding new functionalities
During refacotring, you switch between the 2 hats. You realize how to refactor your code while make adding new
functions easier
You may switch between the 2 hats frequently, always realize which hat you are currently wearing

#
* Eliminate duplicate code doesn't neccesarily make the code faster, but makes it easier in editoing existing code in the
future.

You might also like