Most programmers have, at some point, had to maintain someone else’s code. And it usually sucks. A lot. Maybe there are no comments at all, or if there are comments they’re not helpful (e.g. i++; //increase i by 1). Perhaps that why this “guide” to writing unmaintainable code made me laugh out loud.

If, for example, you were writing an airline reservation system, make sure there are at least 25 places in the code that need to be modified if you were to add another airline. Never document where they are. People who come after you have no business modifying your code without thoroughly understanding every line of it.

I’m not sure how old this is, but it’s a goodie.

Share and Enjoy

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

Related posts:

Windows Code Rewrite Fictional
Funny Code
Seven Low-Cost Ways to Improve Legacy Code
Learning Morse Code From the Commandline
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.