Code - Refactoring

> Code - (Programming|Computer) Language > Code - Quality

1 - About

The process of modifying the code structure, without modifying its current behavior, is called Refactoring.

Refactoring is a method that search to improve the code quality of a program.

The fundamental goals of refactoring are the improvement of system structure and the avoidance of code duplication. (Remarks from me, to a point)

Because any change could actually modify the behavior of the program, it is safest to do when unit tests are in place.

Advertising

3 - Process

A refactoring operation is a sequence of simple edits that transforms a program's code but keeps it in a state where it compiles and runs correctly.

4 - Example

4.1 - Code smells

The suppression of code smells is one usage of refactoring.

4.2 - Java

4.3 - Database

4.4 - Web

Javascript + HTML. See https://qunitjs.com/intro/

Advertising
code/quality/refactor.txt · Last modified: 2019/01/17 13:52 by gerardnico