The 10 Commandments of Legacy Code

I saw a great Twitter post from Joe Anderson about the 10 Commandments of Legacy Code.

The 10 Commandments of Legacy Code

I saw this thread on Twitter/X and I thought it was too good not to share with my audience. It so brilliant, I can't add to it. I won't even try. I will post the list of commandments below since X is no longer public, but you'll have to have a Twitter account to see the rest. It's worth it. Dave gives a little explanation for each of the commandments.

  1. Thou shalt not complain about the code.
  2. Thou shalt not permit tight schedules to ruin your system.
  3. Thou shalt not put orphan features in your system.
  4. Thou shalt not re-write thy system unless thou have considered all other options.
  5. Thou shalt not be afraid to create new systems.
  6. Thou shalt learn the system before changing it.
  7. Thou shalt repair windows, not break them.
  8. Thou shalt not neglect the framework of thy system.
  9. Thou shalt use tests to refactor safer and easier.
  10. Thou shalt build the minimum to gain the value.