Back to 2015-proposals
Title: Refactor first, Test second
Proposer: Gil Zilberfeld
Type: Workshop
Duration: 90 mins
Description:
Refactoring with a safety net is for the weak. Let’s face it, when we have a big ball of mud we inherited,
and we want to test it, we’ll need to make some changes.
This is not easy. This is not foolproof. But with a bit of tooling from your helpful IDE, and some
refactoring understanding (and some guts, yes), you too can prepare your code for testing. We’ll talk
and refactor code that is crying for testing, work around potholes and finally write some tests for it.
Usually we give up. We think that legacy code is untestable. The thing is even without power-tools, we
can still make the code easier to test, and therefore we’re likely to actually get to test it.