Submit your breaking news stories and original articles to us by contacting us
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.
Category: Uncategorized
One Response for "How to Write Unmaintainable Code"
February 7th, 2005 at 4:16 am
1Thats brilliant, I’ll read more of this later.
RSS feed for comments on this post
Leave a reply