Every fix breaks something else

This is the point where people stop trusting their own app. It is not bad luck and it is not you: it is what happens when code is generated in pieces without anything holding the pieces together. There is a way out and it does not start with another prompt.

Why it happens

Each change is written with a view of a few files, not of the whole app. The same logic ends up copied in several places with small differences, and fixing one copy leaves the others as they were.

How to checkSearch for a rule you recently fixed, like a price calculation or a permission check. Count how many places it appears.
What to changeIf it appears more than once, that is your loop. One place, one rule.

The copies usually differ slightly, which is why the bug seems to move rather than repeat.

Step one: stop the bleeding

Before any further change, make it possible to know whether the app still works.

How to checkWrite down the five things that must never break: sign in, the main action, payment, the form, the data list.
What to changeClick through those five after every change, in the same order, on the deployed preview. Ten minutes, every time. It sounds primitive and it ends the loop faster than anything else.

Automated tests are better, but a list you actually follow beats a test suite you never write.

Step two: pull the repeated rules into one place

Each rule that exists in several copies becomes one function, and every screen calls that function.

How to checkStart with money, permissions and dates. Those cause the expensive bugs.
What to changeDo it once, by hand, reading the code. This is an afternoon for a small app and it removes most of the loop permanently.

Ask the tool to do this and it will often produce a seventh copy. This part is faster read than prompted.

Step three: make failures loud

Generated code tends to swallow errors, so a broken part looks like an empty part. You find out from a customer instead of from the app.

How to checkLook for places where an error is caught and nothing is shown or recorded.
What to changeShow the user something honest and send yourself the error. Any free error reporter does this in ten minutes of setup.

A silent failure is worse than a crash, because nobody investigates a page that merely looks empty.

When a rewrite is cheaper

Sometimes the honest answer is that the code cannot be stabilised for less than rebuilding the broken part.

How to checkIf a small change takes a day and breaks two things, and this has happened three times, you are paying rewrite prices already.
What to changeRewrite the broken part only, behind the same screens. Keep the database and the design, replace the logic. It is usually a few days, not weeks.

Rewriting everything at once is the mistake on the other side. Replace one part, ship it, then the next.

Not one of these five?

Send me the link and the exact error text. I will tell you what is broken and what it would take to fix, in writing, within 24 hours. That part is free, and you are not obliged to hire me afterwards.

If you do want it fixed: emergency rescue starts at $600, and I name one fixed number before I start.

Send me the link