How To Write Unmaintainable Code
Dealing With Others
©1997-2003 Canadian Mind Products
You are here : home : Java
Glossary : unmaintainable code : Dealing With
Others.
Hell is other people.
Jean-Paul Sartre -- No Exit 1934
There are many hints sprinkled thoroughout the tips above on how to rattle
maintenance programmers though frustration, and how to foil your boss's attempts
to stop you from writing unmaintainable code, or even how to foment an RWAR that
involves everyone on the topic of how code should be formatted in the repository.
-
Your Boss Knows Best
: If your boss thinks that his or her 20 year old FORTRAN experience is an
excellent guide to contemporary programming, rigidly follow all his or her
recommendations. As a result, the boss will trust you. That may help you in your
career. You will learn many new methods to obfuscate program code.
-
Subvert The Help Desk
: One way to help ensure the code is full of bugs is to ensure the maintenance
programmers never hear about them. This requires subverting the help desk.
Never answer the phone. Use an automated voice that says "thank you for
calling the helpline. To reach a real person press "1" or leave a
voice mail wait for the tone". Email help requests should be ignored other
than to assign them a tracking number. The standard response to any problem is "
I think your account is locked out. The person able to authorise reinstatement
is not available just now."
-
Keep Your Mouth Shut
: Be never vigilant of the next Y2K. If you ever spot something that could sneak
up on a fixed deadline and destroy all life in the western hemisphere then do
not openly discuss it until we are under the critical 4 year event window
of panic and opportunity. Do not tell friends, coworkers, or other competent
people of your discovery. Under no circumstances attempt to publish anything
that might hint at this new and tremendously profitable threat. Do send one
normal priority, jargon encrypted, memo to upper management to cover-your-a$$.
If at all possible attach the jargon encrypted information as a rider on an
otherwise unrelated plain-text memo pertaining to a more immediately pressing
business concern. Rest assured that we all see the threat too. Sleep sound at
night knowing that long after you've been forced into early retirement you will
be begged to come back at a logarithmically increased hourly rate!
-
Baffle 'Em With Bullshit
: Subtlety is a wonderful thing, although sometimes a sledge-hammer is more
subtle than other tools. So, a refinement on misleading comments: create
classes with names like FooFactory containing comments
with references to the GoF creational patterns (ideally with http links to bogus
UML design documents) that have nothing to do with object creation. Play off
the maintainer's delusions of competence. More subtly, create Java classes with
protected constructors and methods like Foo f = Foo.newInstance()that
return actual new instances, rather than the expected singleton. The
opportunities for side-effects are endless.
-
Book Of The Month Club
: Join a computer book of the month club. Select authors who appear to be too
busy writing books to have had any time to actually write any code themselves.
Browse the local bookstore for titles with lots of cloud diagrams in them and no
coding examples. Skim these books to learn obscure pedantic words you can use to
intimidate the whippersnappers that come after you. Your code should impress. If
people can't understand your vocabulary, they must assume that you are very
intelligent and that your algorithms are very deep. Avoid any sort of homely
analogies in your algorithm explanations.
You can get an updated copy of this page from http://mindprod.com/unmainotherpeople.html