Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Asimov's Three Laws of Refactoring

DZone's Guide to

Asimov's Three Laws of Refactoring

· Java Zone ·
Free Resource

Secure your Java app or API service quickly and easily with Okta's user authentication and authorization libraries. Developer accounts are free forever. Try Okta Instead.

  1. A refactoring may not change behaviour or, through inaction, allow behaviour to change.
  2. A refactoring must obey the orders given to it by Martin Fowler, except where such orders would conflict with the First Law.
  3. A refactoring must continue its own existence as long as such continuation does not conflict with the First or Second Law.

Secure your Java app or API service quickly and easily with Okta's user authentication and authorization libraries. Developer accounts are free forever. Try Okta Instead.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}