DEV Community

Cover image for AI Can Write Code. But It Can’t Build Products.
Manas Mishra
Manas Mishra

Posted on

AI Can Write Code. But It Can’t Build Products.

It's been 2 years since I started doing AI development, but there is one thing that was lacking when AI hype started, and it's still lacking now.

Its decision-making, context awareness, and context longevity.

You may have already heard that Claude made a C compiler, Cloudflare made their own Next.js app, etc., but it's only possible when the person behind it was giving very clear instructions.

I saw multiple founders being stuck in a loop, where they have a good idea, but not technical, try to build using Google AI Studio or Replit, lovable, etc., but it's a sinkhole for them. They start well, but are never able to finalize it. They always need a developer who can do the final refinement or solve the issues that AI made for them.

The first problem I am talking about is that AI can start things in a good way, but as you start building a product with vibe coding, then AI falls back, because it lacks the long-term context awareness, or you can say, memory. It doesn't have a long term memory.

The second problem is that AI can write code, but it's not correctly structured, and it's bad. Ihave beenm seeing it for 2 years. The structure of the code used to be very bad before (it's improved a little, but not as much as it's hyped ). I literally told AI to create a React project from the start, and instead of running a command, it literally started creating files one by one, which eventually ran, but it's not what I meant when I said to create a React project ( I meant Vite create ).

The third problem is decision-making. For example, I want to create a website like Uber, and I said the same to AI, and it will create a plan for me. But, is it going to plan the whole architecture? iIsit going to consider the number of users I am targeting? Is it going to consider the database, which will be good for the target user? Is it going to decide the cloud architecture for me? No, iit'snot. It can pretend to do all of that, if you ask AI to do it, but with a simple prompt like "Build me a uber like website,, it's not.


Now, the solution.
I want to build a website that does all of that. Which means that not everyone is a good prompt engineer ( including me ), and I don't want to spend my time refining prompts word by word, so that AI can understand me better. I want to give the power to AI, where it can make decisions, plan exactly what you want ( and take confirmation before doing anything ), and do everything that a senior developer, project manager, or architect is able to do. Provide you complete picture of what's going on. Let you intervene, and be a decision maker ( if you want to be ), otherwise, make a decision for you, and be able to understand the point of the product you want to build, and don't lose context.

I understand that all of the above that I want to build is already possible, but is it possible for you?

Top comments (1)

Collapse
 
mahima_heydev profile image
Mahima From HeyDev

Good framing. In practice the biggest gap I see with AI-generated code is the missing product invariants - data boundaries, auth assumptions, failure modes - so the code looks right until it hits real users.

One thing that helps is treating AI output like a junior PR: require tests that encode the invariant, and run the change through a quick threat model (what can a malicious input do, what breaks if a dependency changes).

Curious how you’d validate “product understanding” early - do you use written specs, user-story tests, or production telemetry as the source of truth?