Code refactoring consists of changing the structure of the code without changing its functionality. The term refactoring is currently used by software development industry to refer to this process.
But what about the verb refactor? Does it exist in this context? Can I say, for example:
After two weeks, I finally refactored the code of this library.
or:
Tell the management that we can't work on the spaghetti code like this. We must refactor it first, which will take a few months.
By the way:
-
Microsoft Word spell checker accepts the term refactoring, but considers refactor as a mistake, suggesting refractor, which has nothing to do with refactoring.
-
Wikipedia avoids using the verb refactor and prefers using combined terms as perform refactoring.
-
When searching for pages containing refactor but not refactoring, the first results are either using refactor as a proper name, like a name of a product, or have nothing to do with software development.
-
Other sources are not helpful. Spell checker in Chrome considers refactoring as an invalid word. The same is the case with Google Translate and several other online translators.
Best Answer
This is most likely a case of dictionaries having not caught up with an industry's lingo or jargon. Here are a few examples of using refactor:
These examples were found with ten minutes of searching.
In addition to the above, my own personal experience around programmers suggests that every single programmer who knows what refactoring is will understand what refactor means. Furthermore, Visual Studio's refactoring menu actually calls it refactor: