Refactoring: Pull Common Code from Conditional
We’ll look at two refactorings suitable for conditional statements: Pull Up Common Head of Conditional and Pull Down Common Tail of Conditional. I originally learned these as performance optimizations but they also help simplify and clarify code. In Refactoring, Martin Continue reading Refactoring: Pull Common Code from Conditional