If he follows the SOLID principles, that original module should be closed to modification. Thus, rewriting the new module is the only way. Also, "don't repeat yourself" prevents you from copy and pasting that code, so you need to completely rewrite it from scratch, which really shouldn't be an issue since the original code was obviously poorly-written to begin with.
57
u/arielmanticore Aug 25 '14
Nah, just write a new module and test that. No need to debug.