TLDR Web Dev · OPINIONS & ADVICE

THE TEN COMMANDMENTS OF REFACTORING

ahalbert.com5 min read

Summary from the TLDR Web Dev newsletter

It’s helpful to have a comprehensive suite of tests to make refactoring easier. Take small steps when making changes, run tests frequently, adopt continuous integration, refrain from adding extra functionality during refactoring, and make refactoring an integral part of the development process. Automate refactoring when possible and avoid excessively long functions or classes.