MVPs and technical debt
Ship the smallest thing that tests your riskiest assumption, treat every shortcut as a loan you write down, and know when paying it back beats the next feature.
The lesson in text
Click a paragraph to hear it.01Nine weeks of work, three weeks of time
Monday morning at StayHub. In the lesson on starting from the problem, the team chose a payout page for partner hotels: it shows, line by line, why a hotel was paid what it was paid.
The full version is estimated at nine weeks: live data, every currency, a PDF export, a drill-down into every chargeback. Karim, the CTO, gives you three weeks and two engineers. What are we cutting?
Omar, who gets paged at night when things break, adds a second one: whatever we cut, what will we owe for it later?
Those two questions are this lesson: the MVP, what to build first; and technical debt, the price of every shortcut.
02The riskiest assumption
The usual instinct is to build the first three weeks of the plan. You'd get a polished third of a page, and still not know the one thing that matters.
So ask: what don't we know yet that could make this page pointless? Not the currencies. Not the PDF. The real unknown is whether seeing a breakdown answers partners' questions, so they stop writing to support.
That's the riskiest assumption. If it's wrong, nothing else matters. And it comes with a number: payout tickets should fall by half within eight weeks.
An MVP, a minimum viable product, is the smallest thing that tests your riskiest assumption with real users. It's not a small version of the final product. It's an experiment that happens to be software.
One assumption, one number, one date. After eight weeks, you decide: build the full page, change it, or remove it. Without a date, an MVP becomes a prototype that lives forever.
03Cut scope, never trust
With the question named, the cuts are easy. Live data? A nightly update is enough. Every currency? Euros cover 81% of partners. Chargebacks become one line, called adjustments. And no PDF for now.
Each cut removes weeks, and none of them weakens the test. A partner can still see why this month's payout is lower.
But some things are never cut. The totals match the real payout, to the cent. Each hotel sees only its own data. Personal data is handled properly. And there's a way to count the tickets, or the test measures nothing.
- · Live data: a nightly update is enough
- · Every currency: euros cover 81% of partners
- · Chargeback drill-down: one "adjustments" line
- · PDF export and mobile layout
- · Totals match the real payout, to the cent
- · Each hotel sees only its own data
- · Personal data handled properly
- · A way to count payout tickets
Correctness isn't polish. With wrong numbers, partners would write in because of the page, tickets couldn't fall, and you'd wrongly conclude the idea doesn't work. Cutting scope is fine. Cutting trust ruins the test.
Then the page ships behind a feature flag: a switch that shows it to some users and not others. Here, 1,200 hotels in the eurozone get it. The rest don't, so you can compare the two groups.
04Every shortcut is a loan
Each of those cuts saves time now and costs something later. That's technical debt, and the word is exact: a shortcut works like a loan.
A loan has two parts. The principal is what you borrowed: here, the work to fix the shortcut properly, once. The interest is what you pay every week you don't: extra tickets, manual work, slower changes.
Debt can be a good tool. A mortgage is debt you chose. You know the amount, the rate, and when you'll pay it off, and it lets you move in years earlier. That's deliberate debt.
A credit card you forgot about is debt too. Small charges nobody noticed, growing quietly until the statement arrives. That's accidental debt: shortcuts nobody chose, or nobody wrote down.
| Loan | In money | In software |
|---|---|---|
| Principal | What you borrowed | The work to fix the shortcut properly, once |
| Interest | What you pay every month | Extra tickets, manual work, slower changes, every week you don't fix it |
| A mortgage | Debt you chose, with a plan | Deliberate debt: chosen, written down, with a trigger to repay |
| A forgotten credit card | Charges nobody noticed | Accidental debt: a shortcut nobody chose, or nobody wrote down |
| The bank statement | Every loan in one place | The debt register |
So the difference between a tool and a trap isn't the shortcut itself. It's whether someone wrote it down.
05The debt register
You write it in a debt register: the bank statement for your shortcuts. One line per debt: an id, an owner, the interest, the principal, and a trigger, the event that says pay it back now.
DEBT-032: the page shows euros only. Interest today: zero. But its trigger is the rollout to the UK and Switzerland. Without that line, someone discovers it the week of the launch.
DEBT-033: chargebacks shown as one adjustments line. Partners ask what it means, about 200 tickets a month, twelve minutes each. That's forty hours a month, about ten a week. Fixing it takes two engineer-weeks: about eighty hours.
DEBT-032 The page shows euros onlydeliberateinterest: none todayno partner outside the eurozone has the page yetprincipal: ~1 engineer-weekadd the other currenciestrigger: before the UK and Switzerland rolloutblocks a launchDEBT-033 Chargebacks shown as one "adjustments" linedeliberateinterest: ~200 tickets a month × 12 min= 40 h a month, about 10 h a weekprincipal: ~2 engineer-weeksabout 80 hourstrigger: break-even inside the quarter80 ÷ 10 = 8 weeksDEBT-031 Nightly job used a copy of billing's commission formulaaccidental, found in an incidentinterest: every billing change must be copied by handa missed one showed wrong numbers to 410 hotelsprincipal: ~1 engineer-weekcall billing's calculation insteadtrigger: nowplus a nightly check: page total = real payoutIn the code, each shortcut carries its id in a comment, so anyone who touches it finds the reason and the trigger. A bare "TODO: fix later" is neither searchable nor reviewable.
06The copy nobody wrote down
Eight weeks after launch, the result comes in. Payout tickets from the flagged hotels fell 46%. The other hotels barely moved. The MVP did its job.
One week later, Omar sees payout tickets climbing again, from hotels that use the new page. 410 of them see a commission of 15% on the page. Their real payout used 12%.
Here's what happened. The night before launch, to hit the deadline, someone copied billing's commission formula into the nightly job. It worked. Nobody wrote it down.
Then billing changed the rate for stays over fourteen nights, from 15% to 12%. The real formula changed. The copy never heard about it. Every night, it recalculated the old rule.
Partners saw two numbers, wrote in to ask which was right, and stopped trusting the page. For those hotels, tickets went above where they were before the page existed.
The fix: call billing's own calculation instead of a copy, check every night that the page total equals the real payout, and record it as DEBT-031. The real mistake wasn't the copy. It was the missing line: a forgotten credit card.
07When to pay it back
Not every debt should be repaid. To decide, divide the principal by the interest per week: that's how many weeks until the fix pays for itself.
DEBT-033: eighty hours to fix, ten hours of interest a week. Eighty divided by ten: eight weeks. The team works in this code all quarter, about thirteen weeks. So fixing it is cheaper than living with it.
| Signal | Means | Do |
|---|---|---|
| Break-even weeks < weeks you'll live with it | Fixing is cheaper than the interest | Repay now (DEBT-033: 80 ÷ 10 = 8 weeks < 13) |
| You're about to build on top of it | New work multiplies the interest | Repay first (the PDF export waits for DEBT-031) |
| It blocks a planned launch | A hard deadline, even with zero interest | Schedule it with a date (DEBT-032 before the UK) |
| The feature may be removed | Repaying could be wasted | Wait: deleting is the cheapest repayment |
| Low interest, isolated code | Costs almost nothing | Leave it, keep it written down |
Three more rules. Repay before you build on top of a debt. Repay before a launch it blocks. And if the feature might be removed, wait: deleting it is the cheapest repayment.
That settled the next argument. Karim wanted a PDF export next, for three large hotel groups. Omar wanted to repay debts thirty-one and thirty-three first, because the PDF would be built on the copied formula and print wrong numbers. Omar won, and the groups got a date.
And nobody proposed a big rewrite. Rewrites freeze features for months and often bring old bugs back. You repay where the interest is highest, inside the features that touch that code.
08Your job as lead
With Claude Code, shortcuts appear faster than ever, because the agent wants to finish. So before any code, ask: list every shortcut you plan to take, so I can approve each one.
Each approved shortcut gets a register line and an id in the code. And one instruction matters most: never copy business rules like prices or commissions. Call the original, or stop and tell me.
When you review, search the diff for copied formulas and for TODOs with no id. Ask for a test that the page's numbers match the real system. And when someone says the code is ugly, ask for the break-even.
Let's recap. An MVP tests your riskiest assumption, with a number and a date. Cut scope, never trust. Every shortcut is a loan: write down its interest, principal and trigger, and repay it when the maths says so. Next lesson: Maya's new checkout. Her dashboard says it worked. Omar's says it didn't.
Check yourself
0/10 answered1What is an MVP?
2What was the riskiest assumption behind StayHub's payout page?
3Claude Code suggests skipping the check that each hotel sees only its own payouts, "because it's only an MVP behind a flag". What do you answer?
4Why would wrong totals on the payout page ruin the test, not just make it a bit worse?
5DEBT-033 shows chargebacks as one "adjustments" line. Which part is its interest?
6A shortcut costs the team 6 hours a week. Fixing it takes 60 hours, and you'll work in that code for the whole quarter (about 13 weeks). What do you do?
7Claude Code's diff copies billing's commission function into the nightly job "to keep the job independent". The register says nothing about it. What do you do?
8Why did 410 hotels see 15% on the page when their payout used 12%?
9Which of these debts should you leave alone for now?
10Claude Code finishes the MVP. The diff has "// TODO: fix later" in three places. What do you ask for?
Save your progress — create a free account
Free. No card. Your finished lessons follow you to any device, and you can ask questions in the community.
Create my free accountEvery lesson is free while we build. Lock in €9/month for later.
The first 100 members keep the founding price for as long as they stay. Reserving is free: no card, nothing is charged.
See the founding offer