Refactoring

3 articles
tag: refactoring 3 published articles
Java

Replacing Conditionals with Polymorphism

Replace complex switch statements and if-else chains with polymorphic designs (Strategy, State, Pattern Matching) that are easier to extend and maintain.

ConditionalsPolymorphismRefactoring+1 more
June 10, 2026
12 min
Java

Extract Method, Class, and Interface

Master the three fundamental extraction refactorings (Method, Class, Interface) with step-by-step techniques for breaking down complex code into testable components.

DecompositionExtract ClassExtract Method+1 more
June 10, 2026
17 min
Java

Code Smells Catalog

Comprehensive catalog of 22 core code smells organized by categories (bloaters, OO abusers, change preventers, dispensables, couplers) with detection and refactoring guidance.

Anti-patternsCode SmellsRefactoring+1 more
June 10, 2026
24 min