-
Notifications
You must be signed in to change notification settings - Fork 0
Refactoring
Ben Christel edited this page Jul 12, 2023
·
1 revision
MartinFowler coined the term "refactoring". You can read more about it on https://refactoring.com/.
"Refactoring" gets used as both a verb and a noun:
As a verb: to refactor code is to alter its internal structure without changing its externally-visible behavior. The focus of refactoring is on making code easier to understand and change.
As a noun: a refactoring is a single, small, atomic, reversible, behavior-preserving change to the structure of code. These refactorings have names: Extract Variable, Extract Function, Change Value to Reference, Replace Query With Parameter.... Martin Fowler named 66 refactorings (listed on his website). I've identified a few more.