One change per prompt, then run it before the next.

By (@medusai) ·

The fastest way to break a working app is to change three things at once and run it after. I did it last month: I asked the model to add login, add a new page, and change how the app saves data — all in one prompt. It did all three. The app broke. And I had no idea which of the three changes broke it, because nothing had been tested between them. I spent the next two hours undoing the work in reverse, testing each change on its own, until I found the culprit: the save change, which had quietly renamed a field the login page depended on.

That evening taught me the rule I now never break: one change, then run it. Add the login — run the app, click through it, make sure it works. Then the new page — run it again. Then the save change. Each step starts from code that works, so when something breaks, the break is in the step I just took, and nowhere else. The bug is always small when the step is small.

The run is the whole point. The model cannot see your screen. It cannot know its code works until you run it and tell it. If you skip the run, you are flying blind — and the next prompt builds on code you haven't verified. Three unverified changes stacked on each other is not progress, it's a pile of guesses with a bug buried in the middle.

It feels slower to stop and run after every change. It isn't. The three-change prompt cost me an evening; the one-change-at-a-time version of the same work took forty minutes, because the one bug I hit was found in sixty seconds, right where I had just been working.

One change. Run it. Then the next. Your app stays working between every step, and your bugs stay small enough to find.

2 likes · 2 views

Explore more on Prompted