Seven Low-Cost Ways to Improve Legacy Code
Besides working for Project Managers who set ridiculously short deadlines the other worst nightmare for a programmers is having to maintain legacy code. At O’Reilly they offer 7 tips on how to improve that legacy code that either you programmed (shame on you) or the person you replaced programmed.
- Use a Stronger Compiler for Your Code
- Use a Code Formatter to Reformat Your Code
- Introduce final All Over Your Code
- Remove Commented-Out Code
- Refactor Classes to Remove Anonymous Classes
- Replace Listeners with Weak Listeners
- Replace Integer Constants with Constant Objects or Enums
Have something to tell us about this article?