Lesson 3 of 9 · 23m
Tutorials, How-Tos, Reference, and Explanation
Different documentation types make different promises. Mixing them produces pages that teach poorly and retrieve poorly.
The most useful documentation framework in practice is also the simplest: different reader situations require different kinds of writing. A beginner following their first successful path needs a tutorial. A practitioner with a specific goal needs a how-to. Someone integrating an API needs reference. Someone making a design decision needs explanation. Treating these as interchangeable is how teams produce walls of text that satisfy nobody.
Tutorials create capability
A tutorial is a guided first success. It is not comprehensive; it is carefully constrained. Every prerequisite is explicit, every step is ordered, and every divergence is either prevented or repaired.
## You will build
A local webhook receiver that verifies signatures and prints the payload.
## Steps
1. Create a test endpoint:
`python3 -m http.server 8080`
2. In a second terminal, expose it:
`ngrok http 8080`
3. Copy the HTTPS forwarding URL into the webhook settings.
4. Send the test event and confirm the signature header appears.The tutorial can choose one operating system, one tool, and one path. Choice is the enemy here. The objective is not to teach everything; it is to produce confidence and a working mental model.
How-tos solve defined problems
A how-to assumes competence and intent. It can say "this procedure assumes TLS terminates at the load balancer" instead of teaching TLS. It should name the outcome, constraints, rollback, and verification. Unlike a tutorial, it may branch — but branches should be explicit decision points, not casual "you might also" tangents.
Reference is complete, accurate, and boring
Reference documentation is a lookup table with prose support. Completeness and consistency matter more than narrative. Every parameter needs a type, default, required status, accepted values, and side effects.
### `backup.retentionDays`
Type: integer
Default: 14
Range: 1-365
Restart required: no
Controls how long completed backup snapshots are retained. Expired snapshots
are deleted during the next hourly cleanup pass.Reference that omits defaults forces readers to experiment in production. Reference that mixes naming styles (retentionDays, retention_days, retention-days) creates doubt even when each page is locally correct.
Explanation builds judgment
Explanation answers why: architecture decisions, tradeoffs, security boundaries, operational constraints. It can be discursive because the reader is evaluating rather than executing. It should connect concepts to consequences: what breaks at scale, what cannot be recovered, why a seemingly awkward design exists.
Mixed pages rot fastest
When a tutorial contains unrelated caveats, beginners get lost. When reference embeds a tutorial, integrators cannot scan it. Split ruthlessly and link deliberately. The tutorial can end by pointing to the production how-to; the how-to can link to exact reference keys; the explanation can justify both.
Field notes
- Diátaxis is the best-known version of this framework, but the value is the separation, not the label.
- If a page title contains "and," check whether it is trying to be two documentation types at once.
- Tutorials must be tested end-to-end after dependency upgrades; they break in ways reference does not.
- Do not hide irreversible warnings in explanation pages when the action appears in a how-to — repeat the warning where the action occurs.
Was this lesson helpful?