View on GitHub

Bearded-android-docs

Working Effectively With Legacy Code: Notes

Download this project as a .zip file Download this project as a tar.gz file

Created Tuesday 22 April 2014

Chapter 7 - It Takes Forever to Make a Change

Chapter 8 - How Do I Add a Feature?

TestDrivenDevelopment:

  1. Get the class you want to change under test.
  2. Write a failing test case.
  3. Get it to compile.
  4. Make it pass. (Leave legacy code unchanged as much as possible)
  5. Remove duplication.
  6. Repeat.

Chapter 9 - I Can't Get This Class Into a Test Harness

i.e., can't instantiate a class.

Difficult Constructors

Hidden Dependencies

Construction Blob

Global Dependencies


No backlinks to this page.
comments powered by Disqus