DELAPARRA
Index
Color
NL
Category: Status emoji

♻️ Refactor

Explained by Updated

What is ♻️ Refactor?

♻️ Refactor: gitmoji: refactor code without changing behaviour. In gitmoji, the recycle emoji marks a refactor: a change to the structure of code that does not change what the code does. Renaming a variable, splitting a large function, or moving a class to a better folder are all refactors. Keeping refactors in their own commits makes reviews easier. A reviewer can check a pure refactor quickly, because the tests should pass unchanged and the behaviour should be identical. When a refactor is mixed with a new feature, every line has to be read twice.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about ♻️ Refactor

What should you keep in mind with ♻️ Refactor?

The emoji is a label, not a guarantee. A refactor only stays safe if there are tests covering the code you move around. If there are none, write a few first. They protect the change you are making now and every later change to the same code.

At a glance

CategoryStatus emoji
Explained by
Updated

More Status emoji terms

All terms starting with a number or symbol

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.