Sfoglia il codice sorgente

Document the design

Writing clarifies thinking and leaves behind guidance for future
maintainers.  Design descriptions shouldn't be required, though,
especially for trivial modules.
Mike Ashley 9 anni fa
parent
commit
bf3b3cf53d
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6
    1
      CONTRIBUTING.md

+ 6
- 1
CONTRIBUTING.md Vedi File

@@ -42,6 +42,12 @@ A module should be designed and implemented to run as quickly as possible in ord
42 42
 
43 43
 A module should have tests. TBD: more about this and what the expectation is.
44 44
 
45
+### Design document
46
+
47
+A module should have a design description explaining the approach to implementing a service and what tradeoffs were made when choosing the design that was implemented. Do not leave this for comments in a pull request as we want this close to the code for the sake of future maintainers.
48
+
49
+The design description should be succinct and to the point. Assume the reader is familiar with Sovereign but not your module. As a rule of thumb, 500-1000 words is about the right length for a module design description.
50
+
45 51
 ## Design checklist
46 52
 
47 53
 Consider the following checklist when reviewing a module's design.
@@ -54,4 +60,3 @@ Consider the following checklist when reviewing a module's design.
54 60
 ## Submitting pull requests
55 61
 
56 62
 When you issue a pull request, please specify what distribution you used for testing (if any).  Code that is committed to the master branch should work with both Debian 7 and Ubuntu 14.04 LTS.  Support for Debian 8 is coming.
57
-

Loading…
Annulla
Salva