Writing
Writing Better Technical Documentation
How to write docs people actually read — knowing your reader, the four documentation types, structure, examples, and keeping docs alive.
Updated 2026-07-11 · 7 min read
Most technical docs fail for the same reason: they were written for the person who wrote them, not the person who has to read them. The author already knows the system, so they document the parts that were interesting to build instead of the parts that are confusing to use.
Good documentation is an act of empathy. You are trying to get an idea out of your head and into someone else's with as little friction as possible. Everything below is in service of that one goal.
Know your reader
Before writing a single line, answer three questions: who is reading this, what are they trying to do, and how much do they already know?
A person landing on your docs is almost never reading for pleasure. They have a job to do and your page is in the way. They are scanning, not reading — looking for the one code block or the one sentence that unblocks them. Write for the scanner.
Concretely, that means:
- Put the most important thing first. Do not bury the install command under three paragraphs of history.
- Assume they arrived from a search engine, not from page one. Every page should stand on its own.
- Match their vocabulary. If your users say "log in" and your code says "authenticate the principal", the docs say "log in".
A useful trick: imagine one specific person — a new teammate, a frustrated user — and write the whole page as if answering their exact question. Generic docs written for "everyone" tend to help no one.
The four kinds of documentation
Not all docs are the same, and mixing them up is the single most common structural mistake. The Diátaxis framework splits documentation into four types, each with a different job:
| Type | Purpose | Reader is... |
|---|---|---|
| Tutorial | Learning by doing | New, needs a guided win |
| How-to guide | Solving a specific task | Knows the goal, needs steps |
| Reference | Looking up facts | Knows what they want, needs details |
| Explanation | Understanding the why | Curious, wants the mental model |
The mistake is writing a "tutorial" that is secretly a wall of reference tables, or a reference page that keeps stopping to explain concepts. Keep them separate. A tutorial holds the reader's hand and guarantees success; a reference is exhaustive and dry on purpose so people can look things up fast.
You do not need all four for a small project. But knowing which one you are writing keeps a single page focused.
