Technical writing and documentation
Clear, accurate writing about technical things.
Technical writing covers design docs, READMEs, specs and documentation. Good technical writing is structured, concrete and written for a specific reader. It scales an engineer's influence beyond the people they talk to.
Why it matters for a product engineer
Code shows what a system does, not why it was built that way or how to use it. Design docs, READMEs, specs and runbooks carry that knowledge to people you will never talk to, including future you. A clear document lets a reviewer find a problem while it is still cheap to fix. It also lets a new teammate start without a meeting. As more code is written by agents, written intent matters more: it is what both people and agents work from.
How to do it
- Name the reader and what they need to do after reading.
- Start with the context and the goal, then the details.
- Keep one kind of document per page: a tutorial, a how-to guide, a reference or an explanation.
- Use short sentences, lists for steps, and a diagram where words get long.
- Ask someone from the target audience to use the document, and fix where they get stuck.
Common mistakes
- Writing for yourself, with steps you skip because you already know them.
- A wall of text where a list or a table would be clearer.
- Mixing a tutorial, a reference and a design rationale in one page.
- Documents that are never updated, so readers stop trusting them.
Example
Malte Ubl describes how Google uses design docs. They are informal, but most follow the same structure, and the part that matters most is the trade-offs. Non-goals are things that could reasonably be goals but were chosen not to be. Alternatives considered explain why the other designs lost. For a larger project, the sweet spot is about 10 to 20 pages, and a one-to-three-page “mini design doc” is also possible.
The usual sections of a design doc at Google
Context and scope1 Goals and non-goals2 The actual design3 Alternatives considered4 Cross-cutting concerns5
- 1The factsA rough overview of the landscape and what is being built
- 2What it must do, and what it will not
- 3Overview first, then the details
- 4Why the other designs lost
- 5Security, privacy, observability
Most of the value is in the trade-offs: what the design will not do, and why the alternatives were not chosen.
ReportedMalte Ubl, Design docs at Google
Sources: Design docs at Google (Malte Ubl) ↗ · Technical writing one (Google for Developers) ↗ · Diátaxis (Daniele Procida) ↗
Resources
3- courseStart here
Technical writing one ↗
Google for Developers · free courseGoogle's free course for engineers on clear sentences, lists, paragraphs and audience.
- articleStart here
Design docs at Google ↗
Malte Ubl · 2020 · 21 minHow a short document with goals, non-goals and alternatives considered makes trade-offs explicit before code.
- docsStart here
Diátaxis ↗
Daniele Procida · free guideFour kinds of documentation (tutorials, how-to guides, reference, explanation) and why mixing them fails.
Tools
2- ToolOpen source
- ToolOpen source