What is Refactoring? #shorts

preview_player
Показать описание
#shorts

Refactoring is the action of enhancing the internal structure of a code without modifying its external behavior. The goal of refactoring is to change the internal structure until it reaches its simplest design. Simplest design depends on a criteria. Usually this criteria includes the cheks to see if all unit tests are running, the code communicates all of its design concepts, the codes are not duplicated, and lastly, the code contains the smallest possible number of classes and methods.

Even though it uses the term ‘simplest design,’ it would still yield an improved version every time a code is being refactored.

Why is refactoring important in agile? Refactoring isn’t just about rewriting codes, fixing bugs, or improving the interface. Its main purpose is to improve objective attributes of code with easy maintenance and help developers easily understand the code.

Рекомендации по теме
Комментарии
Автор

One of the most easiest and fastest explanation. Thank you

anandubabukr