home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / fortran / 4682 < prev    next >
Encoding:
Internet Message Format  |  1992-12-18  |  4.1 KB

  1. Xref: sparky comp.lang.fortran:4682 comp.lang.c++:17875 comp.lang.c:18269
  2. Path: sparky!uunet!cs.utexas.edu!bcm!bcm!usenet
  3. From: rick@crick.ssctr.bcm.tmc.edu (Richard H. Miller)
  4. Newsgroups: comp.lang.fortran,comp.lang.c++,comp.lang.c
  5. Subject: Re: Examples in Documentation
  6. Date: 12 Dec 1992 21:40:25 GMT
  7. Organization: Baylor College of Medicine, Houston, Tx
  8. Lines: 63
  9. Message-ID: <1gdm89INN6bj@gazette.bcm.tmc.edu>
  10. References: <1992Dec1.182234.18284@metaware.metaware.com> <1992Dec5.215042.19371@thunder.mcrcim.mcgill.edu>
  11. NNTP-Posting-Host: crick.ssctr.bcm.tmc.edu
  12.  
  13. In article <1992Dec5.215042.19371@thunder.mcrcim.mcgill.edu>, mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
  14. > In article <1992Dec1.182234.18284@metaware.metaware.com>, dougr@metaware.metaware.com (Douglas Rosener) writes:
  15. > > How important are examples to you when you are looking up a function
  16. > > or syntax in a reference manual.
  17. > [I assume the period is supposed to be a question mark.]
  18. > > Are they unnecessary, essential, or somewhere in between?
  19. > It depends largely on whether I'm using the manual as reference or
  20. > tutorial.  When using documentation for reference, I rarely have any
  21. > use for examples, but when using it to learn things, they are helpful.
  22. > *How* helpful they are depends on (a) how well-written the rest of the
  23. > documentation is and (b) whether they are correct.  (The latter may
  24. > seem obvious, but I've seen far too many manuals with code examples
  25. > that obviously wouldn't even compile, much less work.)
  26.  
  27. And this is the problem with trying to have a single manual serve both as 
  28. reference and tutorial. (Actually there is a third class I would call 
  29. 'cookbook' which is between the tutorial manual and the reference manual.
  30. I view documentation for the programmer as existing on these three levels.
  31.  
  32. 1) A reference manual - This contain all of the information required to 
  33. use the product being documented. It will contain explainations of all of
  34. the constructs, their use and all options as well as return codes and the
  35. like. Examples would not appear in these books except as part of the
  36. documentation of use.
  37.  
  38. 2) The tutorial manual - This is a manual which is used to tutor a person who 
  39. is not familier with the product to gain sufficient proficiency in it to 
  40. understand the reference manual.
  41.  
  42. 3) The 'cookbook' manual - this would contain the examples on how to use the
  43. product demonstrating several of the uses of the product with real-life code.
  44.  
  45.  
  46. To use an example, please excuse me for getting away from the strict charter
  47. of the groups and use an example from our shop. We have a Unisys 2200 and 
  48. part of what we do is develop TIP transactions using COBOL. (Please no 
  49. comments about the appropriateness of the language; for TIP programming
  50. COBOL is the route we use.) Unisys provided a programmers reference manual 
  51. which documented all of the features required to program TIP transactions as
  52. well as a tutorial on what TIP was. There were some simple examples in the
  53. tutorial of transactions but no examples of some of the more complicated
  54. things which transaction do. We have complained about this for years and
  55. finally Unisys has started providing this cookbook manual which contains
  56. many examples of how to do some of the more complicated things. Thus with the
  57. three manuals, we can finally provide an applications programmer with the
  58. necessary documentation to allow them to write code. (It used to be the practice
  59. to call up other sites or talk with them at USE and glom some code of things
  60. you needed.)
  61.  
  62. One other point, electronic documentation is great for reference manuals but
  63. there will always be a need to paper manuals especially when one is developing
  64. some of these more complicated things. It is easier to have that manual open
  65. and be able to flip it depending on how things do, It is also useful to have
  66. the manual at the side or on your lap rather than have to switch screens to
  67. look at the manual and back to look at your code. 
  68. -- 
  69. Richard H. Miller                 Email: rick@bcm.tmc.edu
  70. Asst. Dir. for Technical Support  Voice: (713)798-3532
  71. Baylor College of Medicine        US Mail: One Baylor Plaza, 302H
  72.                                            Houston, Texas 77030
  73.