root / PyCon07 / material / seven_laws.txt

Revision 66:6f93a93faab1, 2.3 kB (checked in by Tarek Ziad?? <tarek@…>, 21 months ago)

added js stack

Line 
1The 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
14The Two-step writing process
15============================
16
17Writing 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
22Each stage should take 50% of the time.
23
24|important| Split you writing time in two phases, no one can write it right
25the first time (except Mozart)
26
27Simple style
28============
29
30- Use short sentences and simple writing style.
31
32- Use simple vocabulary
33
34Targeted readership
35===================
36
37Focus on your target when you write a document (RÃŒping, 2003).
38
39Assume their background knowledge to restrict the scope of the documentation.
40
41|important| A *prerequest* section can help a lot.
42
43Focused information
44===================
45
46A document is about a clear focus.
47
48A precise title for each section and the document itself, and a summary
49can help.
50
51|important| If you cannot easily name the document or one of its section,
52there's a problem
53
54Realistic examples
55==================
56
57Drop the *foo* and *bar* habits. Examples must be real-life examples, and
58usable as-is.
59
60Neh::
61
62    >>> import graph
63    >>> foo = graph.calculateSquare(1, 1, 1, 1)
64    >>> bar = graph.renderSquare(foo)
65   
66Better::
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
75A 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
81a bad sign.
82
83|important| Think documents like code. Always limit the size of sections,
84examples, etc. Modularized documentation is the key.
85
86Structured documents
87====================
88
89Use a clear document portfolio to facilitate the reading. Document should
90use:
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
Note: See TracBrowser for help on using the browser.