Slice the Work Thin
With a spec in hand, it is tempting to paste the whole thing into the assistant and say "build this". You would get a big pile of code across a dozen files, and when something is wrong, and something will be, you would have no idea which part caused it. The fix is to build Kitty in thin slices.
The rule
Build one thin working slice at a time, each one checkable.
A slice is a small piece of the app that works from end to end: something goes in on a page, gets stored, and comes back out. It touches every layer a little, instead of finishing one layer completely before starting the next.
Compare two ways to build Kitty:
- In layers: design every database table, then write every page, then all the logic. Nothing works until the very end, and mistakes pile up unseen.
- In slices: first "log one expense and see it listed". It needs one table, one form and one list, and you can try it today.
Kitty's spec becomes a queue of slices:
- Log an expense and see it in a list.
- Split each expense evenly and show everyone's share.
- Show who owes whom.
- Record a settle-up payment.
- Give each flat its own accounts.
Slices suit AI assistants especially well. A small request produces a small change that you can read in a few minutes, try straight away, and undo cleanly if it is wrong. A big request produces changes too large to review properly, so you end up skimming, which is how bugs slip in.