How To Write Unmaintainable Code

From /., How To Write Unmaintainable Code

My favorite technique,

Use Plural Forms From Other Languages
A VMS script kept track of the “statii” returned from various “Vaxen”. Esperanto , Klingon and Hobbitese qualify as languages for these purposes. For pseudo-Esperanto pluraloj, add oj. You will be doing your part toward world peace.

Lie in the comments
You don’t have to actively lie, just fail to keep comments as up to date with the code.

Document the obvious
Pepper the code with comments like /* add 1 to i */ however, never document wooly stuff like the overall purpose of the package or method.

Document How Not Why
Document only the details of what a program does, not what it is attempting to accomplish. That way, if there is a bug, the fixer will have no clue what the code should be doing.

Comments are closed.