liveBook · Manning

Documentation

As explained in The Art of Code

Technical documentation is written information that explains a software system’s purpose, usage, design, operation, or maintenance.

Technical documentation acts as a complexity buffer: it helps readers understand a software project without reverse-engineering hundreds of lines of code. Its strongest form stays close to the implementation, where it can evolve through the same review process as related code changes. section 3.2.1

Useful documentation artifacts include:

  • Commit messages: concise subjects state change intent; bodies explain reasoning and related tickets preserve traceability. section 3.2.1
  • Documentation comments: Javadoc, Python docstrings, and C# XML comments explain the purpose and intended usage of public code elements. section 3.2.1
  • API contracts: OpenAPI specifications, GraphQL schemas, and gRPC definitions describe system interactions and reduce drift from implementation. section 3.2.1

A practical documentation heuristic

Keep documentation with the code whenever possible, so it follows code review and can be updated with the related change. Use broader formal documentation when its continuing maintenance is clear. section 3.2.1

How The Art of Code covers it

How deep it goes
Explains maintenance rationale and several repository-based forms, but stops short of prescribing a complete documentation workflow.
Examples
Uses commit messages, Javadoc, Python docstrings, C# XML comments, OpenAPI, GraphQL, and gRPC as concrete artifacts.
What you can do after
Apply it by storing maintainable comments, contracts, schemas, and commit explanations alongside the codebase.
How it connects
Connects documentation with code review, version control, API contracts, schemas, commit messages, and executable specifications.

Also explained in

Compare how 12 books explain documentation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Art of Code. The section links point to the parts of the book it draws on.