Strategy for large scale refactoring

前端 未结 9 816
有刺的猬
有刺的猬 2020-12-13 19:54

I\'m currently working in a piece of code where both logic and data access are present in the GUI classes. Obviously, I would like to improve on this situation.

The

9条回答
  •  天命终不由人
    2020-12-13 20:15

    If by refactoring, you mean improving the code without modifying the functionality, I'd start by creating an automated regression testing base line. There are plenty of tools out there to help with this. I use TestComlete though there are good cheap alternatives.

    Having established a regression test baseline, personally I would then go with divide and conquer, as it in my experience it is the most likely to succeed. Once you have a testing baseline, it matters less which approach you choose.

提交回复
热议问题