9 min

What a double-entry ledger taught me about state

Never update a balance. Append what happened and let the sum speak.

Idris Halloran

Software engineer, Edinburgh

Accountants solved a problem five hundred years ago that software teams rediscover every few years: if you overwrite a value, you lose the reason it changed.

Never update a balance

A balance is a sum, not a fact. Store the movements and add them up. When the total looks wrong, the rows tell you which movement to question.

Every entry has two sides

Money that leaves one account arrives in another. If the two sides do not match, the write fails. That single rule removed a whole class of bug from reconciliation.

What it costs

More rows and the occasional slow sum. Both are easier to fix than a balance nobody can explain.

Next

Next

Feature flags are a release tool, not a settings page

Feature flags are a release tool, not a settings page

Have a number that needs moving? Tell me what it is today.

Next free in January 2027. Send the number, where it is measured, and what it costs you. I reply within a day.

Next free in January 2027. Send the number, where it is measured, and what it costs you. I reply within a day.

Create a free website with Framer, the website builder loved by startups, designers and agencies.