Design patterns through refactoring: Strategy
Learn Strategy by refactoring a data-sync class full of if/else: the starting smell, extracting the interface step by step, strategies as lambdas and functional interfaces, picking a strategy in Spring with a registry, and the traps around state, thread safety and rounding money.