Understanding AI-generated code: Frontend, backend, databases, and their connections

So, I'm going to explain as best as I can. You'd see courses where they say front-end development, UI/UX, backend development, gbogbotigbo, and oh the almighty full-stack development, these are branches if I may call them that of development

Frontend development

is what you see and what you experience. It covers UI (User Interface) and UX (User Experience) when using your app. It requires taste, and if you don't have taste, you can steal like an artist. Refer to any of the tutorial videos I've made, and you'd see that most of the time I just copy designs; some of the time I make original designs, but I use inspiration. Check the last blog about understanding AI-assisted coding where I talked about context. This part of AI-assisted coding isn't exactly complex, because you can see it, and if it's shit, you can just say it's shit.

The complex part comes with the backend, especially if you have no development experience.

The backend

is what makes everything tick—it contains business logic, authentication, and every action taken on the app calls the backend.

Now, you can't see it like the frontend, but you can feel it.

Using AI to code requires a lot of testing. I don't mean the ones where the agent tells you tests ran and failed; I mean you yourself, using your hands to use your app end-to-end to understand if it works or breaks. Since you can't exactly read the code, you can write down the errors or the difference in expected behavior and give them to your agent to rectify the code.

Some backends are very delicate and sensitive work that requires human eyes—aged human eyes that are learned in what they are doing. Keyword: sensitive work. For example, fintech, where errors cost you money.

But for a portfolio site—say, an HR manager cannot click to the next page—big deal, nobody died, you can fix it later. With sensitive work, you lose money and customer data.

My advice on using AI for backend work is not to use it for anything that involves other people's money.

Databases...

AI can generate them, and AI can manage databases, but databases have types. Now, this isn't a crash course so I won't explain much; I will only say: use managed databases like Cloud SQL. Use providers that cover auth, security, and the likes on their own, e.g., Supabase (generous free tier), Firebase (great free tier, but the blaze plan is where it's at—pay $10 and then you have a free tier that scales with your product). Other great shouts are Neon DB and the likes.

You connect all these together to have a fully functional app, and when one falls apart, the app isn't functional anymore. Remember, frontend requires just the eye test. Once the backend and DB are connected, it goes from just an eye test to actually using the app end-to-end. With iterative prompting, you will definitely arrive at a usable app.

Build cool stuff. Stay away from people's money.

1 Comment

Geepe
2 Dec 2026

Good stuff 👌

Leave a comment