Refactoring long class step by step (1)# Programming - 葵花宝典
g*g
1 楼
Lately I tried to break down a long class which had 3000+ lines of code
developed by someone coz I am having a hard time maintaining it. And it's
common in everyone's project.
Here are some practical steps and tips I want to share and would welcome
any comments and suggestions. Most of them you can find more details in
refactoring books.
1. Remove unused fields and functions. If there's no references, simply
remove them unless you are providing standard API to open public.
2. Move utility functi
developed by someone coz I am having a hard time maintaining it. And it's
common in everyone's project.
Here are some practical steps and tips I want to share and would welcome
any comments and suggestions. Most of them you can find more details in
refactoring books.
1. Remove unused fields and functions. If there's no references, simply
remove them unless you are providing standard API to open public.
2. Move utility functi