Iâve been writing documentation for years, and Iâve noticed something interesting: the best tech writers approach their work like journalists. Theyâre not just regurgitating information - theyâre investigating, connecting dots, and telling a story. Hereâs why this approach works and how you can use it.
The Parallels Between Journalism and Documentation
Journalists follow leads, dig deep, and piece together a narrative. Good documentation writers do the same thing. They donât just list features - they uncover the âwhyâ behind each function and explain how it all fits together.
Take the React documentation, for example. It doesnât just tell you what hooks are - it explains why they were created, how they solve common problems, and when you should (or shouldnât) use them. Thatâs journalism in action.
When Iâm writing docs, I start with a âleadâ - usually a key feature or concept. Then I ask questions:
- Why was this feature added?
- What problem does it solve?
- How does it connect to other parts of the system?
This investigation often uncovers gaps in my understanding. Thatâs good! It means Iâm finding the spots where users might get confused too.
Telling the Story
With all the pieces in place, itâs time to craft the narrative. Good documentation tells a story - it has a beginning (the problem), a middle (the solution), and an end (the implementation).
For example, instead of just saying âUse the cache()
method to store resultsâ, I might write:
âAs your application scales, repeated database queries can become a bottleneck. The cache()
method provides a simple way to store and retrieve frequently accessed data, significantly reducing load times under heavy traffic.â
This approach gives context, explains the âwhyâ, and helps the reader understand when and how to use the feature.
Documenting a New API Endpoint
Hereâs an introduction to explain the concept, followed by a shortened journalistic example:
When documenting APIs, itâs crucial to provide context and value, not just technical details. Letâs compare a basic approach with a more journalistic style:
Basic documentation:
Journalistic approach:
This journalistic style provides context, highlights benefits, and anticipates user needsâall in a concise format. It turns dry technical info into a story about solving real problems.
Config Setting Example
When documenting configuration settings, itâs tempting to simply list the options and their basic functions. However, by adopting a more journalistic style, we can provide users with context, use cases, and potential impacts of each setting. This approach helps users make informed decisions about when and how to use these configurations.
Letâs compare a basic approach with a more journalistic style:
Basic documentation:
Journalistic:
In the journalistic approach, weâve transformed a simple boolean flag into a story about problem-solving.
This style of documentation doesnât just tell users what the setting doesâit guides them on how to use it effectively. It anticipates questions and provides valuable context, turning dry technical information into a more engaging and informative resource.
By applying this approach consistently across your configuration documentation, you create a more user-friendly experience that can significantly reduce the learning curve for new developers and provide valuable insights even for experienced users.