Skip to content
Lesson 42

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.

Same three weeks, two different first versions
A small version of the final product
The first three weeks of the nine-week plan, polished
You learn: Nothing about the main question: do partners stop writing?
An MVP
Only what tests the riskiest assumption, with real users
You learn: Whether payout tickets fall by half in eight weeks
An MVP has a shape: one assumption, one number, one date. After the date you build it fully, change it, or remove it.

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.

The payout page MVP: cut scope, never trust
Cut for now (scope)
  • · 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
Each cut is written down as a debt.
Never cut (trust)
  • · 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
Shipped behind a feature flag to 1,200 eurozone hotels.
Cutting scope costs partners some convenience. Cutting trust is an incident, and it ruins the test: wrong numbers create the very tickets you're trying to remove.

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.

A shortcut works like a loan
LoanIn moneyIn software
PrincipalWhat you borrowedThe work to fix the shortcut properly, once
InterestWhat you pay every monthExtra tickets, manual work, slower changes, every week you don't fix it
A mortgageDebt you chose, with a planDeliberate debt: chosen, written down, with a trigger to repay
A forgotten credit cardCharges nobody noticedAccidental debt: a shortcut nobody chose, or nobody wrote down
The bank statementEvery loan in one placeThe 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.

The debt register: one line per shortcut
DEBT-032 The page shows euros onlydeliberate
interest: none todayno partner outside the eurozone has the page yet
principal: ~1 engineer-weekadd the other currencies
trigger: before the UK and Switzerland rolloutblocks a launch
DEBT-033 Chargebacks shown as one "adjustments" linedeliberate
interest: ~200 tickets a month × 12 min= 40 h a month, about 10 h a week
principal: ~2 engineer-weeksabout 80 hours
trigger: break-even inside the quarter80 ÷ 10 = 8 weeks
DEBT-031 Nightly job used a copy of billing's commission formulaaccidental, found in an incident
interest: every billing change must be copied by handa missed one showed wrong numbers to 410 hotels
principal: ~1 engineer-weekcall billing's calculation instead
trigger: nowplus a nightly check: page total = real payout
Interest, principal and trigger are enough to decide. In the code, a comment with the same id marks where the shortcut lives; a bare "TODO: fix later" is neither searchable nor reviewable.

In 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.

How an unrecorded copy drifted
Before: the nightly job has its own copy
Billing
Nightly job (copy)
Payout page
rate change 15% → 12% never reaches the copy
still writes 15% for stays over 14 nights
Real payout used 12%. 410 hotels saw two numbers, wrote in, and stopped trusting the page.
After: one rule, checked every night
Billing
Nightly job
Payout page
commission for this booking?
12%
page total = real payout ✓
Billing was right, so nobody on billing noticed. Refreshing every night only recalculated the old rule. The fix calls billing's own calculation, so there is only one 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.

When to pay a debt back
SignalMeansDo
Break-even weeks < weeks you'll live with itFixing is cheaper than the interestRepay now (DEBT-033: 80 ÷ 10 = 8 weeks < 13)
You're about to build on top of itNew work multiplies the interestRepay first (the PDF export waits for DEBT-031)
It blocks a planned launchA hard deadline, even with zero interestSchedule it with a date (DEBT-032 before the UK)
The feature may be removedRepaying could be wastedWait: deleting is the cheapest repayment
Low interest, isolated codeCosts almost nothingLeave it, keep it written down
Break-even = principal ÷ interest per week. "The code is ugly" gives nobody anything to weigh; "it pays back in eight weeks" does.

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 answered
  1. 1What is an MVP?

  2. 2What was the riskiest assumption behind StayHub's payout page?

  3. 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?

  4. 4Why would wrong totals on the payout page ruin the test, not just make it a bit worse?

  5. 5DEBT-033 shows chargebacks as one "adjustments" line. Which part is its interest?

  6. 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?

  7. 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?

  8. 8Why did 410 hotels see 15% on the page when their payout used 12%?

  9. 9Which of these debts should you leave alone for now?

  10. 10Claude Code finishes the MVP. The diff has "// TODO: fix later" in three places. What do you ask for?

Free account

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 account
Founding members

Every 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

Questions from the community

All questions →