Friday, September 23, 2011

Writing Unmaintainable Code...

A treatise on how to write programs that are very difficult to maintain.  As any experienced programmer will recognize, the techniques are commonly found in code that wasn't (presumably) intentionally written to be unmaintainable.  Even though it might as well have been.  An example:
Creative Miss-spelling
If you must use descriptive variable and function names, misspell them. By misspelling in some function and variable names, and spelling it correctly in others (such as SetPintleOpening SetPintalClosing) we effectively negate the use of grep or IDE search techniques. It works amazingly well. Add an international flavor by spelling tory or tori in different theatres/theaters.
But do go read the whole thing...

No comments:

Post a Comment