Book Image

Test-Driven Java Development

Book Image

Test-Driven Java Development

Overview of this book

Table of Contents (17 chapters)
Test-Driven Java Development
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
8
Refactoring Legacy Code – Making it Young Again
Index

Summary


As you already know, inheriting a legacy codebase might be a daunting task.

We stated that legacy code is code without tests, so the first step in dealing with it is to create tests to help you preserve the same functionality during the process. Unfortunately, creating tests is not always as easy as it sounds. Many times, legacy code is tightly coupled and presents other symptoms that show a poor design or at least a lack of interest in the code's quality in the past. Worry not, you can perform some of the tedious tasks step by step, as shown in http://martinfowler.com/bliki/ParallelChange.html. Moreover, it is also well known that software development is a learning process. Working code is a side-effect. Therefore, the most important part is to learn more about the codebase, to be able to modify it with security. Please visit http://www.slideshare.net/ziobrando/model-storming for more information.

Finally, we encourage you to read Michael Feathers' book called Working Effectively...