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

Share and Enjoy

  • StumbleUpon
  • Reddit
  • Digg
  • del.icio.us
  • Facebook
  • TwitThis

Related posts:

Funny Code
Create Elegant Code with Anonymous Methods, Iterators, and Partial Classes
15 ways to improve your laptop’s battery life
How to Write Unmaintainable Code
Code Highlighter

Hope you like that post!

Forever Geek is a resource for all things geek. You can stay tuned by having the latest FG news delivered to you for free via RSS.