Refactor code

From Pearl Language
Jump to: navigation, search

…product development, completing product backlog items.

✣  ✣  ✣

A small code base contains less bugs and takes less effort to maintain. You can invest the extra time in building out your product and profit.

Refactoring encompasses any changes to the system that leaves its behavior unchanged while enhancing nonfunctional quality (i.e. simplicity, flexibility, understandability, or performance).

Not gardening your code will eventually snap you into firefighting mode. See firefight no more.

Therefore:

Take every opportunity to eliminate redundant code and rewrite code, making it more elegant.

✣  ✣  ✣

focus on quality and speed will follow


✣  ✣  ✣

The cost of a story includes providing the capability and maintaining a healthy codebase for future work.
Martin Fowler
Refactoring is something that be done opportunistically, as a regular part of your programming work.
Martin Fowler

Sources


Facts about "Refactor code"
AuthorMartien van Steenbergen +
Goalsustain a minimal and elegant code base with top-notch quality +
PearlProduct backlog item +, Firefight no more + and Focus on quality and speed will follow +
SoTake every opportunity to eliminate redundant code and rewrite code, making it more elegant. +
ThemeAgile +, Extreme Programming + and Quality +
WishA small code base contains less bugs and takes less effort to maintain. +