Code of the Day
IntermediateDocumentation that lasts

Lab: document it well

Decide what to write where — READMEs, comments, commits, ADRs, changelogs.

Lab · optionalFundamentalsIntermediate9 min
By the end of this lesson you will be able to:
  • Comment the why, not the what
  • Choose the right home for a piece of documentation
  • Flag breaking changes for users

Optional scenario lab. Good documentation is mostly knowing what goes where. Practice those calls.

Scenarios: documentation that lasts

  1. 1.
    Which is the best commit subject line?
  2. 2.
    A good code comment most often explains:
  3. 3.
    You chose PostgreSQL over alternatives after weighing real trade-offs. Where should the reasoning live?
  4. 4.
    A release renames a config option that users depend on. In the changelog this is:

The pattern: write for the person who arrives later with no context — usually you.

Finished reading? Mark it complete to track your progress.