http://qs321.pair.com?node_id=11118647


in reply to Working with old code

A 100 line function is not wrong on the surface -that's just a page and a half or maybe 2 pages of code.
Your first step should be to understand the existing code.
I don't see how you can refactor the existing code if you do not understand how the existing code works.