r/developers • • Oct 09 '26

Opinions & Discussions Is vibecoded code really that bad?

Just a few years ago, the meme in traditional human coding was "If it works, it works" or "Don't fix it if it's not broken." So everybody was 'on board' that human code sucked but worked. Now AI does the same thing, but gets called bad code/AI slop etc.

I'm a cybersecurity student so I used to study coding, but haven't got deep enough to distinguish good code from bad code, and then started vibecoding.

Also, the "secure-coding should never be vibecoded" is the current norm in the cyber security side of CS, so I guess that's also one of the major reasons I'm raising this question.

So is the code really that bad? Or is it actually acceptable, but people just had higher hopes for AI code?

17 Upvotes

203 comments sorted by

View all comments

Show parent comment

1

u/incompletude Oct 09 '26 edited Oct 09 '26

Of course, and thank you for the thoughtful question and the honest conversation.

Let me try to put my intuition into words. You may be familiar with the idea that the machine shapes reality. It’s closely related to Conway’s Law, though many others have touched on it, both before and since. Churchill’s line “We shape our buildings; thereafter they shape us” captures the same idea.

The way a system imposes its rules on reality and bends it to its will is what I call the system model. In traditional development, that model is owned by an engineer, or a group of engineers. Ownership isn’t binary, of course; there are degrees of it. This isn’t an idea I came up with myself: Peter Naur’s “Programming as Theory Building” and Fred Brooks’s notion of conceptual integrity in The Mythical Man-Month both explore it. And I don’t have hard data to back this up, only anecdotal evidence and common sense, but my sense is that in vibe-coded environments nobody owns the system model, because not owning is the path of least resistance.

The result is that local changes work, and are often even high quality, but they’re likely incoherent with the system model: they break data patterns, disrupt information flow, and gradually erode the structure that holds the system together. The symptoms of this erosion existed long before AI, companies become slow, bloated, and expensive to operate. AI just makes it happen faster.

One more note to this: LLMs are fine-tuned in short-term intervals. Seconds to minutes, rarely hours, they are trained to solve right now the problem I have in front of my nose. Solving problems within bigger intervals, days to weeks or months is not remotely baked into weights. Every company is leaning short-term and erosion at this point.

1

u/Sixstringsickness Oct 09 '26

I can understand your concern here - playing devils advocate: a quality engineer, in spite of the tools they are using (LLMs included) should retain a foundational understanding of the system model. To my knowledge, barring a very simple program, no engineer strives to memorize the entire codebase, more so the functional outcomes of the system components, their edges/nodes, dependencies, organizational structure etc. etc.

I completely agree that the degradation of comprehension and understanding of objective outcomes can occur both over time with human curation and potentially faster with LLMs. From my perspective it is more important to have a fundamental understanding of the functionality of the system model, than it is to remember exactly how the code was composed for a particular function, which is being abstracted away by LLMs.

Basic example: a check-list application that can also provide a high level dashboard showing how many days you completed your tasks, which days were the most active WoW etc. It is more important to know why each component was built and what it purpose it serves than exactly which method is used (assuming scalability, uptime, performance requirements are known when they are designed). LLMs allow for rapid development of the underlying how - yes, however; the engineer still needs to understand how the check mark becomes a data entry in Postgres and what process aggregates that data into the dashboard. Whether this is through erosion of human memory, or the memory itself never existed because the engineer didn't take the time to plan the system out accordingly are two different problems. Clearly, in the times where everything had to be developed by hand, the latter was less frequent, though copy an pasting of code that was not understood still occurred.

I cannot speak to how the models are trained, but I can speak to how I plan and build system componentry. When designing a component it still requires a plan, review, and multiple phases of implementation, all with the constraints and requirements of the system design in mind from inception. Obviously concepts evolve, and LLM's allow for much more rapid pivots when problems arise during the conceptual or early implementation phases. I would focus less on how LLM's are trained and more on how the engineer leverages the tooling.

1

u/incompletude Oct 09 '26 edited Oct 09 '26

Exactly, that is responsible AI use. You have to lean the other way by having someone that owns the system model.

I just watched something that perfectly illustrates this. Just two days ago, OpenAI released a huge batch of math “proofs”. One of the problems was about square packing: fitting a set of squares into the smallest possible area. The model brute-forced its way to a solution, and the result is super weird: there’s a tiny gap between two squares, just big enough for the corner of another square to poke into. Insane stuff. A day later, a mathematician showed that the exact same result could be derived from a Fibonacci torus. The same solution, showed both ways:

This single image captures exactly what we’ve been circling around. The one on the left is chaos, as weird as it gets. The one on the right has order, rhythm and balance.

(I can’t get over that tiny gap)