Principles 11 and 12: configurable, never hard-coded; a module writes only its own
This commit is contained in:
@@ -30,6 +30,10 @@ add, sharpen or drop a principle in a pull request to this file.
|
||||
module's internals.
|
||||
10. **The module is the unit.** Everything is done per module, never per repository. A repository is only where a
|
||||
module's files are kept; a merge moves only the modules it changes.
|
||||
11. **Configurable, never hard-coded.** A value that can differ between machines, modules or over time (a port, a
|
||||
path, a bound, a cap, a name, a time) is a setting with a default, never written into the code.
|
||||
12. **A module writes only its own.** A module writes its own files and state alone; what another module needs from it
|
||||
goes through a provision or a contribution that module declares, never a file written in its place.
|
||||
|
||||
How it is checked: the one code review of a milestone checks the code against these principles and the design's
|
||||
shape; an answer to a develop question names the principle that settles it.
|
||||
|
||||
Reference in New Issue
Block a user