- A refactoring may not change behaviour or, through inaction, allow behaviour to change.
- A refactoring must obey the orders given to it by Martin Fowler, except where such orders would conflict with the First Law.
- A refactoring must continue its own existence as long as such continuation does not conflict with the First or Second Law.
Asimov's Three Laws of Refactoring
Join the DZone community and get the full member experience.Join For Free
Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code! Brought to you in partnership with ZeroTurnaround.
Published at DZone with permission of Edmund Kirwan, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.