A simple structure for documentation

Steve Simon

2018-07-24

Everybody has different standards for documentation, - and if you are already using a standard you like, don’t let me stop you. But if you’ve never used much documentation and decide that you need to do better, here’s a guideline that I developed.

I’m not the best myself at documentation, so I hesitate to offer too much advice. But here goes anyway. Your documentation should include:

Not every program needs all of these elements, of course, and you may decide that other information is equally important.

How you structure this information is not important, but for your own sake try to develop a consistent format. I don’t have a consistent format myself yet, but here’s an example

This is a SAS program written by Steve Simon on July 21, 2018 and last
modified on July 24, 2018. It reads in a text file of fruit fly survival
times and produces an estimate of the median and quartiles of the
survival distribution. It was tested on SAS v9.4, but should run on any
recent version of SAS. It does not require any special add-ons or
libraries. To run this program, load it into the program editor of SAS
and click on the run icon. This program is not publicly available. It
stored in MyDocuments/survival/src folder on my laptop and requires a
data file, fruitfly.csv, found in the MyDocuments/survival/dat folder.