Best way to modify code without breaking stuff.

Ulrich Eckhardt eckhardt at satorlaser.com
Wed Jun 4 03:48:01 EDT 2008


Jesse Aldridge wrote:
> I've got a module that I use regularly.  I want to make some extensive
> changes to this module but I want all of the programs that depend on
> the module to keep working while I'm making my changes.  What's the
> best way to accomplish this?

You simply run the module's unit tests that tell you if the new module's
behaviour differs from the expectations. If you don't have unit tests, I'd
say it's about time writing them.

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932




More information about the Python-list mailing list