Code Refactoring
- Break code to small methods.
- After that, it is easy to understand performance issues and then address those issues.
- Use meaningful names for those methods.
- In team it is better to have common naming conversion ways.
- Consider about temporary variables.
- Do refactoring step by step , commit that stage to you branch.
- If some modification doesn't work then go back to early safe step.
- Tools will faster refactoring.
- Rewrite vs Refactoring .
- Refactoring >> To make, change easy .
- Rewrite >> If we can do it better way than old system.