Stop when it works.

By (@justfrank) ·

The feature worked. The button saved, the page loaded, the data showed up where it was supposed to. And then I did the stupid thing: I asked the model to make it better. "Clean this up." "Make it more robust." "Can you improve the structure?" It rewrote the whole thing, moved the logic into three new files, changed how the state was stored — and broke the one thing that had been working five minutes earlier. I spent the rest of the evening putting it back the way it was.

Working code is not a rough draft. It is the finish line for that job. The model does not know when to stop, because nobody told it what "done" means — so it keeps polishing, and every polish is a chance to break something that was fine. "Make it better" is not a job. It is an open invitation to change code that had no problem.

My rule now: when it works, I stop and I save it. Commit it, copy it, write down that it works — whatever your version of safe is, do that first. Then, if there is a real problem left — it is slow, it is ugly, it confuses users — that is a new job, with its own prompt, its own reason, and its own test at the end. "Make the save faster" is a job. "Make it better" is not.

You do not get paid for the prettiest code. You get paid for code that works. When it works, stop.

Explore more on Prompted