Clean Code
Mosh Hamedani
Master refactoring techniques with Mosh Hamedani's Clean Code course and write maintainable, readable code. Start improving your skills today!
More resources on Refactoring
Refactoring.Guru
Illustrated reference to the classic Gang of Four design patterns and a catalog of code smells and refactoring techniques, with intent, structure diagrams and code examples in Java, C#, Python and other languages, so developers can recognize design problems and apply the right fix.
Martin Fowler Refactoring
Martin Fowler's hub for refactoring, defining the practice as disciplined, behavior-preserving restructuring of code and linking to his catalog, book editions and related articles. A short orientation that clarifies what refactoring is, why small steps matter, and where to study further.
Refactoring: Improving the Design of Existing Code
Martin Fowler's foundational book defining refactoring and cataloguing dozens of named, step-by-step transformations in Java, alongside a list of code smells. After it, you can spot poorly structured code and improve its design in small, test-protected steps without changing behavior.
Refactoring to Patterns
Joshua Kerievsky's book connecting refactoring with Gang of Four design patterns, showing through worked Java examples how to move code toward, or away from, patterns incrementally. It teaches when a pattern is justified and how to introduce one safely instead of overengineering upfront.
sourcemaking.com
SourceMaking is a comprehensive online guide to software design patterns, anti-patterns, and refactoring, featuring a searchable pattern library with detailed explanations, diagrams, and code examples across multiple languages.