Complex refactoring in simple steps Part III

Matthew Butt · 30 Jan 2017

Screencast - Complex refactoring in simple steps, Part III: From Conditional to Polymorphism

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

In this episode we identify three classes that are being used in the same way. We introduce a common abstraction, and separate their creation and invocation. Finally, we remove a Middleman class to complete our journey to polymorphism.

The code used in this video can be found on GitHub

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.

Latest Blogs




Contact Us

15 Northburgh Street
London EC1V 0JR

Phone: +44 207 4902967

2 Mount Street
Manchester M2 5WQ

Phone: +44 207 4902967

Carrer Aragó, 208
08011, Barcelona

Phone: +34 937 82 28 82

Email: hello@codurance.com