documentation

Complete

Concept

Documentation for different audience

TypePurposeExamples
Developer-as-userexplain how to use components/APIsAPI docs, tutorials
Developer-as-maintainerexplain design, implementation, testingdeveloper guides

Documentation guidelines

GuidelineKey IdeaImplication
Top-down approachstart high-level, then drill downreaders can navigate to needed detail easily
Comprehensibilitymake docs easy to understanduse diagrams, examples, simple language
Minimal but sufficientavoid unnecessary documentationfocus on info not obvious from code

JavaDoc

  • tool for generating API documentation from code comments
  • used for:
    • method descriptions (@param, @return, @throws)
    • Class descriptions
  • IDE tooltips