Complex refactoring in simple steps Part II

30 Sep 2016

Screencast - Complex refactoring in simple steps, Part II: Steps towards Polymorphism

Matthew Butt demonstrates how to compose simple automated refactoring steps in ReSharper to refactor code to better designs.

In this episode we spot a conditional with three branches. We Decompose this Conditional to clarify the logic, and then Extract Method Objects to encapsulate the behaviour of each branch. By the time we've finished, we are well on our way to implementing polymorphism.

The code used in this video can be found on GitHub

Related Blogs

Get content like this straight to your inbox!

Codurance Logo

Software is our passion.

We are software craftspeople. We build well-crafted software for our clients, we help developers to get better at their craft through training, coaching and mentoring, and we help companies get better at delivering software.