Share via


Refactoring finds dead code

It is always nice to read/listen to a good story. And since refactoring is very important to you if you use BDD/TDD I suggest you read this story to further fuel your refactoring enthusiasm. This also touches the subject of having no ands or ors in your conditionals. Basically that means that as soon as your conditional consist of more than one check you should refactor and give the conditional a good, descriptive name.