Lift Up Conditional Refactoring
Channel: Gregor Riegler
Date: 2019-12-07

Practical example of doing a lift up conditional refactoring in Java.

The lift up conditional refactoring is useful for complex and deeply nested conditionals, where related parts are scattered all over the place. I am using the Gilded Rose Kata, which is a perfect example, as it consists of a really complex conditional.

Try it yourself!

The Code:
https://github.com/gregorriegler/GildedRose-Refactoring-Kata/tree/lift-up-if-refactoring/Java

Let me know what you think.
https://twitter.com/gregor_riegler
http://gregorriegler.com/