1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Biz
The end is financial independence. The means: write everything down,
first in English, then in code. Automate it until we don't have to work
any longer.
Compounding returns are magical. Wealth is found in asymmetries.
## Goals of the workflow
- have minimal ceremony
- default to asynchrony, but allow for synchronous work when necessary
- automate the boring stuff
- standardize environments, tooling, and versions to minimize friction
while collaborating
- support the longevity and self-sustainability of the project
Ideally, each contributor should be able to go off grid for a day or a
week or more, continue working offline, submit their work when finished,
and have no or minimal conflicts. This also refers to the resilience of
the production systems.
We should never need "out of office" email auto-replies, or urgent
contact. No pager duty, no daily stand-ups. Yes, this policy will affect
what code we write, not just how we write it; that is by design.
## Layout
The source tree maps to the DNS namespace that we own. The purpose of
this mapping is to keep things organized hierarchically in how they are
deployed on the Internet. The main 'common' space is `Com.Simatime`,
other namespaces should be related to their application.
Development aspects should be localized to their sub-namespaces as much
as possible. Only after sufficient iteration such that interfaces are
solidified and functionality is well-established should some code be
promoted up the namespace hierarchy.
Boundaries and interfaces between namespaces should be small and
well-defined. Likewise, the functionality and purpose of a particular
namespace should be small and well-defined. Following the unix principle
of "do one thing and do it well" is advised.
For building the code, we use `nix` and basically copy the namespace
hierarchy into the main build file `./default.nix`.
Namespaces are always capitalized. I would prefer always lowercase, but
`ghc` _really_ wants capitalized files, so we appeas `ghc`. In Scheme
this actually translates quite well and helps distinguish between types
and values.
File extensions denote _type_ and indicate to the build system how to
handle the file. So for example:
- `.hs` is Haskell source code, the build system compiles it
- `.scm` is Scheme source code, ditto
- `.org` is an organizational text document, the build system ignores
this, but we use them to make plans and such
- `.jnl` is a journal for accounting, the build system will check our
balances, make sure we're profitable
## Development
To build code, do:
bild <ns>
To get in the environment for a thing, `repl`:
repl <ns>
And to deploy:
push <ns> <url>
TODO: document how we use the following:
- Org
- Git
- Email
- IRC
|