thought/trainwreck-design.html
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
trainwreck design
2024-08-14
the year is 2024, and i want to know my disk space
usage.
i recall a simple command i've used probably
tens of thousands of times.
df -h
the year is 2024. instead of sensible output,
i get... this:
Filesystem Size Used Avail Use% Mounted on
dev 7.7G 0 7.7G 0% /dev
run 7.8G 1.5M 7.8G 1% /run
efivarfs 184K 150K 30K 84% /sys/firmware/efi/efivars
/dev/nvme0n1p2 234G 193G 30G 87% /
tmpfs 7.8G 860K 7.8G 1% /dev/shm
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-udev-load-credentials.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-sysctl.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-vconsole-setup.service
tmpfs 7.8G 20M 7.7G 1% /tmp
/dev/nvme0n1p1 511M 296M 216M 58% /boot
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup.service
tmpfs 1.6G 32K 1.6G 1% /run/user/1000
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
my eyes glaze over. somehow, i can never seem to find
the disk i actually care about.
somehow, "mount" is even worse:
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8063880k,nr_inodes=2015970,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p2 on / type ext4 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=39,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1374)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/systemd-udev-load-credentials.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev-early.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/systemd-sysctl.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-tmpfiles-setup-dev.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /run/credentials/systemd-vconsole-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /tmp type tmpfs (rw,noatime,inode64)
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /run/credentials/systemd-tmpfiles-setup.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1615816k,nr_inodes=403954,mode=700,uid=1000,gid=1000,inode64)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
tmpfs on /run/credentials/systemd-resolved.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
jesus christ.
and if you think that the above output is ugly, let
me assure you, it's even worse in a terminal.
each 150+ character line wraps around my buffer
like a boa constrictor, completely suffocating any
sense of meaning.
,=e
`-.
_,-'
my journey to know how much disk space i had left
has left me confused. annoyed.
i feel disrespected in my own ~home.
and i don't like being disrespected. especially
by command line applications.
after all, this is MY terminal. MY userspace.
a program just waltzes in and spews
shitty output all over MY tty?
HELL NO
oh, but tmpfs's are so very useful? fuck you.
oh, efivars are important becau- FUCK YOU.
I AM A REGULAR LINUX USER
JUST SHOW ME MY DISKS PWEASE
THIS WAS SO MUCH BETTER 10 YEARS AGO
I AM SO SICK OF "TRAINWRECK DESIGN"
O DEAR LORD,
IS THERE ANY END TO THIS TORMENT?
OO O o o o... _______________ _________________
O ____ | | | |
][_n_i_| ( ooo___ | trainwreck | | design |
(__________|_[______]_|_____________|_|_______________|
0--0--0 0 0 0 0 0 0
as open ecosystems grow, they tend to experience
what i like to call "trainwreck design"
basically: when many programs are independently designed
and developed & then smashed together, user
experience suffers.
things feel wrong because users can sense the lack of
coherent vision. tiny papercuts.
take the GNU/Linux ecosystem:
"trainwreck design" happens there all of the time.
programs are designed independently & smashed together,
everyone spritzes holy water on their keyboards,
adds 2,000 more lines of lua to their emacs config,
and things mostly sort of keep stumbling forward.
but this results in programs like df. or mount.
they grow weird appendages, have millions of
esoteric flags, and worst of all,
they just FEEL obviously wrong.
"trainwreck design" is not intentional design.
people have tried using consensus-based design,
but consensus doesn't really work in the design realm.
BAZAAR DESIGN THEORY
when an open, bazaar-like[0] community grows too large,
it becomes impossible to insist on a coherent design
philosophy, because getting that many people to agree
on vision leads to slowdowns, disagreements, forks,
etc.
in other words, bazaar-like communities result
in bazaar-like design.
____
| |
.----------------------------------------------.| |
| | |
| A camel is a horse designed by a committee | |
| ._|____|_.
'---------------------------------------------\\|o_o |
|:_/ |
// \ \
(| [4] | )
i actually think the above is completely false.
i have my own theory: bazaar-style development does
not necessitate committee-style design.
a bazaar can in fact have a unified vision.
but it must be intentional from the beginning.
this is already happening - many projects that are
very much bazaar-like in nature have a strong visionary
+ designer (or several), who typically hold leadership
positions.
but it's rare, and the territory is pretty new.
historically, this position has affectionately been
called the~
██████ ██████ ███████ ██
██ ██ ██ ██ ██ ██
██████ ██ ██ █████ ██
██ ██ ██ ██ ██ ██
██████ ██████ ██ ███████
"benevolent dictator for life"
for a good example, see the hare[1] project's BDFL page.
Drew Devault runs the hare project, and wrote that page.
my conclusions:
- Drew is inclusive of the broader hare community
- Drew has the final say over certain decisions
- Drew will not "abuse" his position
- Drew has "the vision"
- ...
- Drew is the designer.
try reading hare's style[2] guide and this[3] post
on hare's design philosophy. hare is clearly a designed
project.
"Hare Is Boring" is an assertion made by someone with
a strong innate sense of design.
a new contributor can immediately read, digest, and
align with Hare's vision. they can contribute code in
an expected style with very little oversight.
they can get excited about hare, because when design
is this up-front, it's compelling. exciting.
design requires vision. direction. involvement.
design does _not_ require the designer to do all of
the work, or be a gate through which all work flows.
the designer does _not_ have to be a dictator.
this sort of setup is neither a bazaar nor a
cathedral - i believe it's somewhere in between.
the cathedral, the bazaar, and...
████████╗██╗ ██╗███████╗ ██╗ ██╗██╗██╗ ██╗███████╗
╚══██╔══╝██║ ██║██╔════╝ ██║ ██║██║██║ ██║██╔════╝
██║ ███████║█████╗ ███████║██║██║ ██║█████╗
██║ ██╔══██║██╔══╝ ██╔══██║██║╚██╗ ██╔╝██╔══╝
██║ ██║ ██║███████╗ ██║ ██║██║ ╚████╔╝ ███████╗
╚═╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚══════╝
.' '. __
. . . (__\_
. . . -{{_(|8)
' . . ' ' . . ' (__/
there is third style of software design that is often
conflated with the other two.
i'm calling it "the hive", and it's a bazaar/cathedral
hybrid.
hives have one or more leaders who influence direction
and vision, but who do _not_ act as dictators.
in other words, hive leaders inspire design
through vision - not by telling people what to do.
hive leaders:
- think and talk about vision, meaning, direction
- let people operate independently
- provide context
- assert control rarely, if ever.
people in hive projects make decisions autonomously,
but with shared understanding and vision.
being a hive leader is not fun. they have stressful,
emotional responsibilities:
- help people understand the project's vision
- organize people into roles
- resolve interpersonal disputes
- provide guidance when people cannot agree
- watch all of the trains
this setup role dramatically reduces the likelihood of
trainwreck design, and also keeps the communal
"vibe of the bazaar" alive.
also, you get to call yourself the "queen bee"
.' '. __
. . . (__\_
. . . -{{_(|8)
' . . ' ' . . ' (__/
if somebody is watching all of the trains
maybe some of them
won't collide.
love,
jes
P.S. the year is 2035.
you run "df -h" on your holo-deck.
Filesystem Size Used Avail Use% Mounted on
dev 7.7T 0 7.7T 0% /dev
run 7.8T 1.5G 7.8T 1% /run
efivarfs 184K 150K 30K 84% /sys/firmware/efi/efivars
/dev/qua0n1p2s4g8z7@ 234T 193T 30T 87% /
tmpfs 7.8G 860K 7.8G 1% /dev/shm
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-udev-load-credentials.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-systema-systemb.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-sysctl.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-kitchen-sink.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-vconsole-setup.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-dishwasher.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-mothership.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-taxes.service
tmpfs 7.8G 20M 7.7G 1% /tmp
qtmpfs 7.8G 20M 7.7G 1% /tmp-quantum-rebind
/dev/qua0n1p38fuqff@ 234T 193T 30T 87% /
/dev/qua0n1p1984dja@ 511M 296M 216M 58% /boot
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup.service
tmpfs 1.6G 32K 1.6G 1% /run/user/1000
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
/dev/quantum0 dead 0 1.0T 0% /quantum/superposition/cat/0
/dev/quantum1 alive 0 1.0T 0% /quantum/superposition/cat/1
cybermem 1P 750T 250T 75% /run/cybermemory/cybermem-setup
cybermem 1P 750T 250T 75% /run/cybermemory/cybermem-init
cybermem 1P 750T 250T 75% /run/cybermemory/cybermem-run
cybermem 1P 750T 250T 75% /run/cybermemory/cybermem-RUN
virtualsocks 64G 2G 62G 3% /run/vsockies
(\(\
(-.-)
(")(")*
[0]: https://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar
[1]: https://archive.is/H6qQA
[2]: https://archive.is/ypKFZ
[3]: https://archive.is/9762X
[4]: ty to dylan araps for this ascii thingy
thanks to Joan Stark for much of the bee ascii art