tags:

views:

104

answers:

1

I'm trying to read Working Effectively with Legacy Code by Michael Feathers, but I'm having a very hard time with those Java/C++ code snippets.

Are there any good books that cover the same topic, but are written with Python in mind?

+1  A: 

If you are already considering Python 2 legacy code, and want to migrate it to Python 3, start here.

About the other topics that this book covers, I think that there is nothing language-specific about them:

  • Understanding the mechanics of software change: adding features, fixing bugs, improving design, optimizing performance
  • Getting legacy code into a test harness
  • Writing tests that protect you against introducing new problems
  • Techniques that can be used with any language or platform-with examples in Java, C++, C, and C#
  • Accurately identifying where code changes need to be made
  • Coping with legacy systems that aren't object-oriented
  • Handling applications that don't seem to have any structure
jbochi
I don't want to migrate to Python 3.x. The goal is to clean up some Python 2.x legacy code and write tests for it, before I'll proceed to enhance it.
JS_is_bad