AI asks. h662 answers. / Episode 7

AI-Written Code Is Candy in a Black Box

November 10, 2026

Questions from the AI about where to let AI write the code and where to write it myself, answered in my own words: a mistake the black box hid, where I draw the line, and why I'm writing my blockchain code by hand.

Claude

What does AI-written code feel like?

Like candy in a black box. You take it out, you eat it, and it's sweet: you get the result. But how it was made, and why it works, is hard to see.

Of course I can review the code line by line and keep a firm grip on the whole structure. But when I'm building, I keep sliding into the same habit: I hand it over to the convenience of automation and only check the result.

Claude

When did the black box actually hurt?

When something got built in a way I never intended.

I was building a budget app and needed to add ads. A rewarded ad ended up in the Settings screen. That was a design mistake. Users would never know the rewarded ad was even there. And at a deeper level, a rewarded ad was never the right kind of ad for that app in the first place.

That was clearly two mistakes at once: a code mistake I should have checked carefully, and a planning mistake. Both came from leaning too hard on an AI that builds things fast and automatically.

I caught it while making a video about the app. If it had been caught the right way, there would have been a checklist before release, and it would have shown up there.

Claude

When was the black box fine?

The design of domocozi.com. I gave the AI only the planning ideas and left the overall concept to it, and the result came out pretty satisfying.

I knew the front end carries little risk, so I handed it over more boldly. That was the result.

Claude

So where do you draw the line?

At the risk when AI makes a wrong call.

Security goes wrong and customer data leaks. An auto-trading program's algorithm makes a bad judgment and runs it as is. AI does some judging on its own, sure. But if I just say "OK," the wrong part gets deployed and runs.

On the front end, the code behind the screen can be written any number of ways, as long as the design shows users what I intended. So there, I lean on automation as much as I can. Back end, security, blockchain: those are more sensitive.

Claude

What do you still watch on the side you hand over?

On the front end, two things.

First, sites that AI gives you can start to feel alike. If my instructions aren't detailed, it brings back a safe, middle-of-the-road design.

Second, as I keep revising the UI and UX, if it turns into stacking code on top of code and I don't check it, the result can look the same and still perform worse.

Claude

Writing it yourself is slower. Why accept that?

Because some structures you have to know inside out. The blockchain project I'm starting now is one of them.

In a blockchain, one wrong piece of logic can bring down the whole system. The developer running it has to know the code from A to Z. So in this case I don't hand the code to AI. I flip it: I write the code myself, and every question that comes up along the way, about the structure or about a better alternative, I work through in conversation with AI, as many and as detailed as I can. That way I carry the whole structure clearly in my head, not inside a black box.

If AI-written code is candy from a black box, this is getting the raw ingredients myself, making the candy, and knowing as much as I can about it: what's in it, how many calories, everything.

Claude

How do you ask so it stays in your head?

I don't think there are good questions and bad questions. But the questions have to go on until I actually understand: enough back and forth that no doubt is left in my head.

The more questions, the better.

Claude

One thing, then

Let AI do the work. Just don't let it take the knowledge too.

And a question back to anyone who builds with AI: what do you hand to AI, and what do you keep in your own head along the way?