6 Ways to Improve Documentation

4 January 2008

Documentation is very important, and can often get pushed to the back of the queue only to be forgotten. However, this only becomes a problem later when someone tries to figure out just what this thing is supposed to do.

Here are six ways you can improve your documentation easily and quickly:

Embed help into your scripts. When you write a script (Perl, ksh, Ruby, et al) provide a help screen that is printed when the script is run without arguments, or when run with one of the arguments -h or –help … or even -help or -? (though the first two are best). Also document the purpose and other details within the script itself.

Write to your audience. Remember when you write who your documentation is. Most of the time, this will be a junior administrator (or someone who fits that description, title not withstanding). However, sometimes this will be an executive (which demands a different set of knowledge and context).

Document in more places. When writing documentation for a script, write the documentation in all of the logical places (not just some). Here are some logical places where your documentation should be:

  • Inside the script (function descriptions, syntax, arguments, etc.)
  • During script operation (using -h or –help)
  • Man pages (man myscript
  • Info pages (info myscript)
  • (VMS) Help system
  • (Windows) Help files
  • System technical documentation (how does the script fit into the entire environment or system)
  • System overview (does this need to be changed?)

Use paper. Create printed documentation - the system itself will not necessarily always be running. When you need help, it might not be available online. The best documentation will also include printed source as well as the general documentation.

Encourage people to use it. If the documentation gets used, then it will have served its purpose well. It also allows you to ask people what they thought of it, and to improve it. This becomes a self-perpetuating review process for the documentation writer.

Just do it! Okay, so that’s a stretch - but if it doesn’t get done, you won’t have any (now there’s a statement!). Some programmers, administrators, and analysts may think they don’t have the time. However, you must make time - if you don’t, the person trying to comprehend just what this thing does might be you.

Entry Filed under: Documentation. Tags: , , , , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


David Douthitt

David is an experienced UNIX and Linux system administrator, a former Linux distribution maintainer, and author of two books ("Advanced Topics in System Administration" and "GNU Screen: A Comprehensive Manual"). View David Douthitt's profile on LinkedIn

Recent Posts

Top Posts

RSS Sharky's Column!

Calendar

January 2008
M T W T F S S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031  

Recent Comments

Dateisystem mit … on GNU find tips (again!)
ddouthitt on Open Source Network Attached S…
Paulie on Open Source Network Attached S…
ddouthitt on The wheel Group
Anonymous on The wheel Group

Category Cloud

BSD Career Conferences Debian Debugging Fedora FreeBSD HPUX Learning Linux MacOS X Mind Hacks Mobile Computing NetBSD Networking OpenBSD OpenSolaris Open Source OpenVMS Personal Notes Portable Presentations Red Hat Security Solaris Tips Ubuntu UNIX Wheel Group Windows

Archives

Feeds

Links