JavaRush /Java Blog /Random EN /Refactoring
omentes
Level 8

Refactoring

Published in the Random EN group
Today I came across a very interesting guide. More precisely, a site dedicated to refactoring. I advise you to read :) Refactoring - 1So, briefly what it is about: refactoring is a controlled process of improving your code, without writing new functionality. Refactoring challenge: reduce technical debt. Refactoring goal: clean code and simple design. Clean code = Simple code
  • Clean code passes all tests.
  • Clean code is obvious to other programmers.
  • Clean code contains no duplication.
  • Clean code contains a minimum of classes and other moving parts.
  • Clean code is easier and cheaper to maintain.
How is the refactoring going? Refactoring should be done as a series of small changes, each one making the existing code slightly better while leaving the program running. Checklist of correctly performed refactoring:
  • The refactoring process does not create new functionality.
  • After the refactoring, all existing tests should pass successfully.
  • After refactoring, the code should become cleaner.
More details, with beautifully designed examples - at the link .
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION