Any fool can tell the truth, but it requires a man of some sense to know how to lie well.
~ Samuel Butler (1835-12-04 1902-06-18 age:66)
Incorrect documentation is often worse than no documentation.
~ Bertrand Meyer (1950 age:67), creator of design by contract and the Eiffel language.
Since the computer ignores comments and documentation, you can lie outrageously and do everything in your power to befuddle the poor maintenance programmer.
In fact, the design doc should break the algorithm down into a hierarchy of structured steps, described in a hierarchy of auto-numbered individual paragraphs in the document. Use headings at least 5 deep. Make sure that when you are done, you have broken the structure down so completely that there are over 500 such auto-numbered paragraphs. For example, one paragraph might be: (this is a real example)
1.2.4.6.3.13 — Display all impacts for activity where selected mitigations can apply (short pseudocode omitted).
then… (and this is the kicker) when you write the code, for each of these paragraphs you write a corresponding
Act1_2_4_6_3_13()Do not document these functions. After all, that’s what the design document is for!
Since the design doc is auto-numbered, it will be extremely difficult to keep it up to date with changes in the code (because the function names, of course, are static, not auto-numbered.) This isn’t a problem for you because you will not try to keep the document up to date. In fact, do everything you can to destroy all traces of the document.
Those who come after you should only be able to find one or two contradictory, early drafts of the design document hidden on some dusty shelving in the back room near the dead 286 computers.
This page is posted |
http://mindprod.com/jgloss/unmaindocumentation.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\unmaindocumentation.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.97.14.87] |
| |
Feedback |
You are visitor number | |