Difference between revisions of "Unmaintainable code"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Documentation)
(Coding Obfuscation)
Line 43: Line 43:
 
=== Coding Obfuscation ===
 
=== Coding Obfuscation ===
  
 +
"Sedulously eschew obfuscatory hyperverbosity and prolixity." (Anon.)
 +
 
[http://mindprod.com/jgloss/unmainobfuscation.html Link]
 
[http://mindprod.com/jgloss/unmainobfuscation.html Link]
  

Revision as of 08:23, 18 August 2015

Unmaintainable code is an essay by Roedy Green about [[software development], software testing, code refactoring, and related topics.

It is a satire in the tradition of The Devil's Dictionary.

Many of the examples use Java, but the general principles apply to all programming languages.

See the official website for the complete essay.

Topics

General Principles

"You want to make it as hard as possible for [the maintenance programmer] to find the code he is looking for. But even more important, you want to make it as awkward as possible for him to safely ignore anything.

"Programmers are lulled into complacency by conventions. By every once in a while, by subtly violating convention, you force him to read every line of your code with a magnifying glass."

Link

Naming

"Much of the skill in writing unmaintainable code is the art of naming variables and methods. They don’t matter at all to the compiler. That gives you huge latitude to use them to befuddle the maintenance programmer."

Link

Camouflage

"Much of the skill in writing unmaintainable code is the art of camouflage, hiding things, or making things appear to be what they are not."

Link

Documentation

"Since the computer ignores comments and documentation, you can lie outrageously and do everything in your power to befuddle the poor maintenance programmer."

Link

Program Design

"The cardinal rule of writing unmaintainable code is to specify each fact in as many places as possible and in as many ways as possible."

Link

Coding Obfuscation

"Sedulously eschew obfuscatory hyperverbosity and prolixity." (Anon.)

Link

Ambiguity

Link

Testing

Link

Choice of Language

Link

Dealing With Others

Link

Roll Your Own

Link

Tricks In Offbeat Languages

Link

Miscellaneous Techniques

Link

Philosophy

Link

The Shoemaker Has No Shoes

Link

Contributors

Link

Operation Termite

Link

Feedback

Link

See also

External links