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.

  1. Use a Stronger Compiler for Your Code
  2. Use a Code Formatter to Reformat Your Code
  3. Introduce final All Over Your Code
  4. Remove Commented-Out Code
  5. Refactor Classes to Remove Anonymous Classes
  6. Replace Listeners with Weak Listeners
  7. Replace Integer Constants with Constant Objects or Enums


 

Leave a Comment

Your email address will not be published.

*