Skip to the workspace
Pebellslearn by building
Plan Before You Prompt  ›  Lesson

Slice the Work Thin

Plan before you Code 12 minBuild in small end-to-end slices that you can demo, review and undo, instead of finishing whole layers before anything works.

vibe coding / Slice the Work Thin

Explore each scene at your own pace.

01 · The rule

The rule

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:

  1. Log an expense and see it in a list.
  2. Split each expense evenly and show everyone's share.
  3. Show who owes whom.
  4. Record a settle-up payment.
  5. 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.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.