What does refactor mean?

In software engineering, refactor means to improve the structure of existing code, making it cleaner or easier to change, without changing what it does for the user.

riːˈfæktərverbCore term

Software Engineering vocabulary · Code Review and Code Quality

In Turkish: yeniden düzenlemek, yeniden yapılandırmak, kodu iyileştirmek

How it is used

Common in reviews and planning: 'refactor this into a separate class', 'a big refactor'. The noun is 'refactoring' or, informally, 'a refactor'. Good refactoring happens in small steps with tests in place.

Example sentences

  1. I refactored the payment module so each provider has its own class.

  2. Let's not mix a refactor with a bug fix in the same PR.

Common collocations

  • refactor the code
  • a big refactor
  • refactor into
  • refactoring work

More terms: Code Review and Code Quality

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: