DELAPARRA
Index
Color
NL
Category: Core glossary

Refactoring

Explained by Updated

What is Refactoring?

Refactoring: Restructuring existing code to improve its internal structure without changing its external behaviour. Reduces technical debt and improves maintainability. Refactoring means changing the structure of code without changing what it does. Renaming things clearly, splitting a long function, removing duplication and moving code to where it belongs are all refactorings.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Refactoring

How is Refactoring used in practice?

The goal is code that is easier to understand and change. Every feature added to messy code takes longer, and refactoring keeps that cost under control.

What should you keep in mind with Refactoring?

Refactor in small steps, with tests that confirm behaviour stays the same after each step. Keep refactoring commits separate from feature changes, so reviewers can check them quickly. IDE refactoring tools, such as rename and extract method, make many changes safe and fast. The best time to refactor is often just before adding a feature to an area: first make the change easy, then make the easy change.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with R

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.