Session

Testing Legacy Code & Refactoring Patterns

Our jobs don't deal with new code, but old crufty and evil code. How do we test such code? How do we get through it? How can we surgically remove some of this harmful code and make it testable? How can we move away from excessive mocking?

This presentation looks at harmful code and discusses some strategies we can use to diagnose, test, apply, and finally refactor to produce something that promotes some sanity in your development process. The content of this course is all in Java and Junit. We discuss the following maneuvers:

* Extract Delegate
* Extract Interface
* Parameterize Method
* Parameterize Constructor
* Sprout Method and Class
* Wrap Method and Class

Daniel Hinojosa

Independent Consultant

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top