Remove the special case instead of adding the if. Look at the problem from the right angle and the edge case disappears.
−if (prev) prev->next = n->next;−else head = n->next;+*pp = n->next;
2
Never break userspace
Backward compatibility is sacred. A change that breaks something that used to work is a bug, however correct it looks on paper.
3
Pragmatism
Solve real problems, not imagined threats. The size of the fix matches the size of the problem.
4
Simplicity
More than three levels of indentation means redesign. Short functions that do one thing.
fn() {for (…) {if (…) {if (…) {x();
Pipeline
Spec
Every acceptance criterion can become a test.
Test
Red first, and red for the right reason.
Code
The least code that turns it green.
Land
All green, or it does not ship.
Rule zero
Talk is cheap. Show me the spec and the tests.
Rules one, two and four are Linus Torvalds’s. Rule zero is his too, bent a little.
为学日益,为道日损。损之又损,以至于无为。
Tao Te Ching, ch. 48In the pursuit of learning, something is gained every day. In the pursuit of the Way, something is dropped every day. Less and less, until nothing is forced.
03
Work
00
Telehealth platform
Day job
One product, every layer of it.
TypeScriptVueFlutter
Private
01
Stint
Android
A native time tracker that turns tracked hours into PayPal invoices.
KotlinComposeRoom
Private
02
Jails Launcher
Linux desktop
A GTK4 / libadwaita launcher and a GNOME Shell extension for firejail-sandboxed desktop apps.
PythonGJSGTK4
Private
03
Workflow
Tooling
An agent-driven delivery pipeline. Nightly health checks, automated test verdicts, guarded deploys.