|
|
|
|
|
by zdw
5233 days ago
|
|
If you really want to do a rewrite, first: - Write comprehensive test cases and run your current product agains them. Have these also benchmark the code if they're performance critical. - During the rewrite, slavishly adhere to the test cases. If there's an undesireable difference discovered between old/new, write another test case. - If possible, break up the original product into smaller modular sub-projects you can rewrite independently. Most problems with rewrites come from starting from scratch - slowly replacing a code base from the inside is a much better way to do it. |
|
This.
Many projects can be done this way. In particular, the process of figuring out the set that can be replaced at any given time can aid in the refactoring.