Next: PSI3 Reference
Up: progman
Previous: Multiple Source Code Directories
  Contents
Documentation
Documentation is often the only link between code's author and code's
users. The usefulness of the code will depend heavily on the quality
of its documentation. One great failing of most of the PSI code is
that it contains little to no documentation. We strongly advocate
documentation of three types:
- A short description of the code's function and keywords must be written
for each new module and library added to the PSI3 package.
There is no convention yet what should be the preferred medium for
such a description, but the following are common:
- A UNIX man page -- all old and some newer PSI3 codes
use man pages as the medium of choice.
- HTML-based documentation -- this is a much more flexible medium
than man pages and is accessible by anyone anywhere in the
world. Although HTML has its own drawbacks (e.g. the separation of the
form and the function is not always enforced, and it does not allow
tags to be customized), it is pretty safe to assume that HTML will
remain the dominant means of distributing information. Hence we
encourage PSI3 contributors to write documentation in HTML
format. Documentation for cints and libpsio.a can be
used for examples.
- Direct inclusion in the PSI3 manuals -- binaries
(modules) should be included in the user's manual and libraries in the
programmer's manual.
- Second, as mentioned before, the source code should be directly
documented by comment lines in the code.
- A complete manual should be written for all finished programs,
describing all input options, explaining how the program works (theory and
technical details), and providing solutions to common problems encountered
with the program. Sometimes, the latter documentation is included in the
man page: for a good example, see the man page for intder95.
Alternatively, a separate document can be created; for another example,
see the documentation of fcmgen.
Next: PSI3 Reference
Up: progman
Previous: Multiple Source Code Directories
  Contents
psi
2003-01-07