Principles
We build software following two complementary schools: Lean Software Development tells us what to optimize (the flow of value to customers, with as little waste as possible), and eXtreme Programming tells us how to write code that keeps that flow healthy. Both fit our values: Cut the Fluff and Be Sustainable.
Lean Software Development
Lean comes from manufacturing, which makes it a natural fit for a company that works with factories. Mary and Tom Poppendieck adapted it to software in seven principles.
| Principle | What it means here |
|---|---|
| Eliminate waste | Don’t build what nobody asked for. No half-finished work sitting in branches, no features “just in case”, no handoffs that only move tickets around. |
| Build quality in | Quality is part of the work, not a phase after it. Tests and CI run on every pull request; we fix a broken build before anything else. |
| Amplify learning | Ship small, get feedback from real plants, and adjust. Post-mortems and retros turn mistakes into changes. |
| Defer commitment | Decide at the last responsible moment, when we know the most. Keep designs simple enough to change. Record the decisions that matter as ADRs. |
| Deliver fast | Short iterations and small pull requests. A feature that’s merged and deployed is worth more than a perfect one still in review. |
| Respect people | The people doing the work decide how to do it. Reviews are about the code, never the person. Post-mortems are blameless. |
| Optimize the whole | Look at the whole flow, from a customer need to a running sensor in a plant, not at one step. A fast merge that breaks a deployment isn’t fast. |
eXtreme Programming
XP, created by Kent Beck, is a set of engineering practices that make change cheap. These are the ones we follow.
| Practice | What it means here |
|---|---|
| Small releases | Two-week iterations, and changes small enough to review in one sitting. Deploy often. |
| Test-first | Our default is to write the test before the code (TDD), especially for detection rules, compliance controls and bug fixes. See Testing. |
| Continuous integration | Every pull request is built, tested and linted by CI, and merged to main quickly. See trunk-based development below. |
| Simple design | The simplest thing that works today. No speculative abstractions; we add them when a second real use appears. |
| Refactoring | Improve the code as you touch it, in small steps covered by tests. Leave it better than you found it. |
| Collective code ownership | Anyone can change any part of the code. Knowledge shouldn’t live in one head; reviews spread it. |
| Coding standards | One style, enforced by tools (golangci-lint, the frontend linter) rather than by review comments. |
| Pair programming | When it helps: hard problems, unfamiliar code, onboarding. Not mandatory for everything. |
| Sustainable pace | No heroics as a habit. If an iteration only works with overtime, the plan was wrong. See Remote Work. |
Trunk-based development
main is our trunk, and everyone integrates into it continuously. We still use pull requests,
for review and CI, but they’re a short stop on the way to main, not a place where work lives.
- Always branch from
main. Never from another feature branch, and no long-liveddevelopor release branches. - Keep branches short-lived. Merge within a day or two. If a branch lives longer, it’s too big: split it.
- Keep
mainreleasable. Every merge must leavemainbuilding, tested and deployable. - Integrate small steps. Unfinished work can be merged as long as it doesn’t change behaviour for users yet, instead of waiting in a branch until everything is done.
The details are in Pull Requests and Commits.
In short
- Small, frequent, tested changes over big, rare ones.
- Simple code that’s easy to change over clever code that’s hard to change.
- Learn from production and from each other, and act on it in the next iteration.