The 'refactor' step in TDD is deceptively simple: you just have to improve the code, without changing what it does, right? And the experts make it look so easy: “Look”, they say, “here's some duplication, which I will remove by
But how should you decide which 'duplication' to remove first? What happens if you fix the 'wrong' smell? And how do you even see that duplication in the first place?
In this workshop you will learn the value of coupling as a practical tool to help plan and manage refactoring. You will explore a smelly codebase using Connascence – an objective approach to discovering and measuring the important coupling in an application. You won't be writing any code, but please bring a laptop so that you can download the sample code and navigate it using your preferred IDE.
Dr Kevin Rutherford is a highly experienced software development coach, speaker, and extreme programmer working for the XP Surgery. He is the creator of the vastly under-rated Reek code smell detector, and the vastly over-rated book Refactoring in Ruby. If you have ever used Unix System V or taken out a mortgage in the UK, you have unwittingly used his code. He now spends much of his time coaching and mentoring software development teams throughout the UK. His Erdos number is 3, and he was using vi before you were born.
Adrian is a Software Developer with a strong interest in writing systems that are clean and easy to change, Software Craftsmanship and creating great teams.