Rules for Writing Software Tutorials
refactoringenglish.com2025年01月02日 00:00
Most software tutorials are tragically flawed.
Tutorials often forget to mention some key detail, preventing readers from replicating the author’s process. Other times, the author brings in hidden assumptions that don’t match their readers’ expectations.
The good news is that it’s easier than you think to write an exceptional software tutorial. You can stand out in a sea of mediocre guides by following a few simple rules.
Rules
- Write for beginners
- Promise a clear outcome in the title
- Explain the goal in the introduction
- Show the end result
- Make code snippets copy/pasteable
- Use long versions of command-line flags
- Separate user-defined values from reusable logic
- Use unambiguous example values
- Spare the reader from mindless tasks
- Keep your code in a working state
- Teach one thing
- Don’t try to look pretty
- Minimize dependencies
- Specify filenames clearly
- Use consistent, descriptive headings
- Demonstrate that your solution works
- Link to a complete example
Write for beginners
The most common mistake tutorials make is explaining beginner-level concepts using expert-level terminology.