// afreh · investing

// personal finance for engineers

The Software
Engineer's Guide to Investing

System thinking for personal finance that doesn't fall over.

A system-design approach to personal finance. You already reason about failure modes, redundancy and observability at work — this book applies the same discipline to your own balance sheet.

available on amazon · 268 pages

Cover of The Software Engineer's Guide to Investing by Michael Afreh
observabilityhigh availabilityredundancyidempotencyci / cdchaos engineeringgraceful degradationcapacity planningobservabilityhigh availabilityredundancyidempotencyci / cdchaos engineeringgraceful degradationcapacity planningobservabilityhigh availabilityredundancyidempotencyci / cdchaos engineeringgraceful degradationcapacity planning

01 — the problem

You can design a system that survives a region outage. Your money runs on a spreadsheet you last opened in March.

Engineering salaries arrive with equity, vesting schedules, multi-currency accounts and a tax situation nobody explained. Most personal finance advice is written for someone with one paycheque and no stock options — so it gets ignored, and the default becomes cash sitting idle in a current account.

The gap is not knowledge. It is that finance is presented as a set of tips instead of a system with inputs, failure modes and monitoring. This book closes that gap by using the vocabulary you already think in, and by insisting every decision be observable, reversible and boring enough to run unattended.

“A financial plan you have to remember to execute is a plan with a human in the hot path.”

02 — inside the book

Six systems, applied to one balance sheet

Each part opens with the engineering concept, then maps it onto a concrete financial mechanism with worked numbers.

01
observability

Instrument before you optimise

Net worth, burn rate, savings rate and runway as first-class metrics. What to log monthly, what to alert on, and which dashboards are noise.

02
high availability

An emergency fund is an SLA

Sizing your cash buffer against real failure modes — layoffs, visa changes, medical events — instead of a round number someone posted online.

03
redundancy

No single point of failure

One employer, one currency, one brokerage, one country. Diversification framed as removing SPOFs from your income and asset graph.

04
ci / cd

Automate the boring pipeline

Automatic transfers, index contributions, rebalancing schedules. Deploy your savings on a cron, review the logs quarterly, stop hand-deploying.

05
chaos engineering

Break it on purpose

Run drills: a 40% drawdown, six months without income, a currency shock. Find out which part of your finances falls over while stakes are low.

06
tech debt

Equity, taxes and interest

RSUs, options, vesting cliffs and high-interest debt read as liabilities on a ledger — with a payoff order that survives contact with reality.

Michael Afreh

03 — author

Michael Afreh

Michael is a senior software engineer in Berlin with more than twelve years building and running production systems in banking, fintech and e-commerce — from core banking platforms across West Africa to e-commerce systems with millions of products. The kind of work where a bad assumption shows up as an incident report at 3am.

He started writing about money the way he writes design docs: state the constraints, name the failure modes, keep the operations boring. This book is the version of those notes he wishes someone had handed him at his first offer letter.

backend engineeringbanking, fintech & e-commerceinfo@sweguidetoinvesting.com

05 — free chapter

Read chapter one before you buy anything

“Inheriting the Codebase” — the opening chapter, sent as a PDF. It sets up the model the rest of the book runs on.

One email with the chapter. No sequence, no drip campaign.