| 1 | The seven laws |
|---|
| 2 | ============== |
|---|
| 3 | |
|---|
| 4 | .. contents:: The seven *laws* for technical writing: |
|---|
| 5 | |
|---|
| 6 | - Two-step writing process |
|---|
| 7 | - Simple style |
|---|
| 8 | - Targeted readership |
|---|
| 9 | - Focused information |
|---|
| 10 | - Realistic examples |
|---|
| 11 | - "Light but sufficient" approach |
|---|
| 12 | - Structured documents |
|---|
| 13 | |
|---|
| 14 | The Two-step writing process |
|---|
| 15 | ============================ |
|---|
| 16 | |
|---|
| 17 | Writing should be done in two stages (Elbow, 1980): |
|---|
| 18 | |
|---|
| 19 | - a free writing where ideas are written on the paper no matter the shape. |
|---|
| 20 | - a review stage where things are structured and reviewed. |
|---|
| 21 | |
|---|
| 22 | Each stage should take 50% of the time. |
|---|
| 23 | |
|---|
| 24 | |important| Split you writing time in two phases, no one can write it right |
|---|
| 25 | the first time (except Mozart) |
|---|
| 26 | |
|---|
| 27 | Simple style |
|---|
| 28 | ============ |
|---|
| 29 | |
|---|
| 30 | - Use short sentences and simple writing style. |
|---|
| 31 | |
|---|
| 32 | - Use simple vocabulary |
|---|
| 33 | |
|---|
| 34 | Targeted readership |
|---|
| 35 | =================== |
|---|
| 36 | |
|---|
| 37 | Focus on your target when you write a document (RÃŒping, 2003). |
|---|
| 38 | |
|---|
| 39 | Assume their background knowledge to restrict the scope of the documentation. |
|---|
| 40 | |
|---|
| 41 | |important| A *prerequest* section can help a lot. |
|---|
| 42 | |
|---|
| 43 | Focused information |
|---|
| 44 | =================== |
|---|
| 45 | |
|---|
| 46 | A document is about a clear focus. |
|---|
| 47 | |
|---|
| 48 | A precise title for each section and the document itself, and a summary |
|---|
| 49 | can help. |
|---|
| 50 | |
|---|
| 51 | |important| If you cannot easily name the document or one of its section, |
|---|
| 52 | there's a problem |
|---|
| 53 | |
|---|
| 54 | Realistic examples |
|---|
| 55 | ================== |
|---|
| 56 | |
|---|
| 57 | Drop the *foo* and *bar* habits. Examples must be real-life examples, and |
|---|
| 58 | usable as-is. |
|---|
| 59 | |
|---|
| 60 | Neh:: |
|---|
| 61 | |
|---|
| 62 | >>> import graph |
|---|
| 63 | >>> foo = graph.calculateSquare(1, 1, 1, 1) |
|---|
| 64 | >>> bar = graph.renderSquare(foo) |
|---|
| 65 | |
|---|
| 66 | Better:: |
|---|
| 67 | |
|---|
| 68 | >>> import graph |
|---|
| 69 | >>> square = graph.calculateSquare(1, 7, 1, 10) |
|---|
| 70 | >>> square_view = graph.renderSquare(square) |
|---|
| 71 | |
|---|
| 72 | "Light but sufficient" approach |
|---|
| 73 | =============================== |
|---|
| 74 | |
|---|
| 75 | A working software is more important than the best documentation in the world |
|---|
| 76 | (Ambler, 2002). |
|---|
| 77 | |
|---|
| 78 | *Quality over Quantity* is the best rule. |
|---|
| 79 | |
|---|
| 80 | |important| Spending too much time to find something in the documentation is |
|---|
| 81 | a bad sign. |
|---|
| 82 | |
|---|
| 83 | |important| Think documents like code. Always limit the size of sections, |
|---|
| 84 | examples, etc. Modularized documentation is the key. |
|---|
| 85 | |
|---|
| 86 | Structured documents |
|---|
| 87 | ==================== |
|---|
| 88 | |
|---|
| 89 | Use a clear document portfolio to facilitate the reading. Document should |
|---|
| 90 | use: |
|---|
| 91 | |
|---|
| 92 | - an abstract with a readers guideline |
|---|
| 93 | - a toc when there are more than one section |
|---|
| 94 | - references |
|---|
| 95 | - glossary |
|---|
| 96 | - tables and diagrams |
|---|
| 97 | |
|---|
| 98 | |important| Never write a document that doesn't have a template |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | .. |important| image:: important.png |
|---|