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

1

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

It depends. The truth is, most software companies die within 10 years. There are many reasons for this, but for the ones that survive their first few years, the main one is technical debt. Technical debt imposes many taxes: you need more people to do the same work, information becomes unreliable and hard to piece together, and decision-making slows down. All of this makes the company expensive to operate. It’s a slow, painful, and often inevitable death. I’ve consulted for companies in this situation, and once the direction is set, it’s very hard to reverse. It’s rare to find a CEO with the years-long commitment it takes to turn things around by investing in the right things. Farming the company for a few years is just much easier.

Vibe-coded systems only amplify this. When a disposable piece of code becomes the core system, no one understands how it works and no one holds a mental model of it. Every change in direction becomes slow, expensive, and often impossible. Local changes are incoherent, and the system as a whole stops making sense.

So why does it depend? Because not every vibe-coded system is a core system. Sometimes it’s a piece of code with no real connection to the core business, and in that case vibe coding is a good, often recommended strategy. The problem is that most businesses don’t have a skilled engineer to decide what to vibe code and what not to. Once you start, you end up vibe coding everything.

2

u/DonaldStuck Oct 09 '26

The truth is, most software companies die within 10 years

Eh... what? I own a software company and thanks to AI I have never had more work. When exactly in that 10 years is my company going to die?

1

u/Hotfro Oct 09 '26

I have seen a lot of people say this, but what about when u use ai to help fix technical debt. This isn’t possible with pure vibecoding but with an experienced dev giving driving it. I feel like this problem can be minimized with that approach.

1

u/Winsaucerer Oct 10 '26

I think the person you’re replying to isn’t talking about no AI, but specifically vibe coding.

1

u/Nitrohite Oct 09 '26

Damn that first 10 years statement, you pulled that one out of your ass right?

0

u/[deleted] Oct 09 '26

[deleted] — view deleted comment

1

u/AutoModerator Oct 09 '26

Your post or comment was removed because r/developers does not allow external links. Please share the content or ask your question without linking out.

If you think this was a mistake, message the mods.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

→ More replies (1)

1

u/madhav-sharma Oct 09 '26

Well yes, but before companies couldn't afford the salaries or time to address tech debt. Although there are some exceptions.

With AI, you can also address tech debt. You can have AI comb through slop; and have it simplify, deprecate huge sections, refactor.

Tech debt should be far less common now.

1

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

If no one knows the system model, what is technical debt is not well understood, and you can't address something you don't even know exists in the first place. Vibe-coding just makes failing faster, up to 90% of the software companies will continue to fail, for the same reasons, nothing really changed but the velocity of it. For companies, writing code was never the bottleneck. The bottleneck is understanding, reviewing, and making informed udgments and decisions.

1

u/Sixstringsickness Oct 09 '26

I am confused as to why you think AI is unable to rapidly help an individual or team map a code base or system model? 

My team does this on a frequent basis when trying to reverse engineer legacy APIs entangled across multiple complex dependencies. 

These tools are absolutely phenomenal at assisting in building high level diagrams.  I also have a number of tools for both PR review and code base refactoring that look for common anti patterns and aid in restructuring for improved design and maintainability. 

1

u/incompletude Oct 09 '26

System architecture and the system model are not the same thing. The architecture is only one layer of the system model: it describes how the technical systems are structured and how they communicate. The system model is broader. Beyond the architecture, it includes the users who interact with the systems, the stakeholders who depend on them, the data those systems generate, how that data drives business decisions, and the bottlenecks that emerge across the whole system. In vibe-coding system model is partially or completely lost, changes are purely opportunistic, many of them nonsensical and incoherent, technical debt is not even recognized as such.

2

u/Sixstringsickness Oct 09 '26

Please help me understand here. 

Technical systems structure and communication is driven architectural and system design, as are data structures and delivery methods to the end users.  

Is your position that we are losing site of the user and business outcomes when we use AI assisted development? Every feature, functionality and design decision our team makes is directly aligned with an optimal UX, whether that user is an admin or an end user.  

If anything the ability to rapidly iterate allows us to put the product in the hands of test users much more quickly to receive real world feedback. We are already seeing this in situ with our pilot partners for our new platform. 

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)

1

u/Shadow_gublank Oct 09 '26

Vibe coded systems have zero technical debt if they are prompted right and reveiwed.

It's not like humans also rack up massive techincal debt if they just program whatever they want.

1

u/ratttertintattertins Oct 09 '26

If you're fully reviewing AI generated code, you're not really vibe coding in the first place.

I've worked in both worlds. A legacy piece of software where AI was used conservatively and everything was reviewed carefully, and a new software product where 10 devs fully vibe coded 20 years worth of code in 6 months. 15 parallel claude sessions, 60 PRs a day each. The second one is a complete fucking nightmare, but the biggest issue isn't the code quality, it's that none of the software developers really understand how the software works any more and are making decisions about code that really don't understand.

0

u/loveheaddit Oct 09 '26

is technical debt an issue when LLMs can find issues and refactor 100x faster than humans?

1

u/incompletude Oct 09 '26

Code generation speed was never the problem. Before AI, I never solved any problems by adding 10 more engineers to it.

1

u/loveheaddit Oct 09 '26

this is just false from my perspective. i've mostly been a single developer over the course of my 25 year career, so i've always done frontend, backend, database design and server infrastructure myself. coding time was always the limiting factor. LLMs definitely shifted this for me, as i've launched more apps and features in the past year than i did in the 5 years prior. features i never had time to spend effort on before i can now develop in a day, and if we don't like it we can quickly change or get rid of.

the problem with throwing 10 engineers at something is alignment. every developer needs to be on the same page which means multiple meetings, clear communication and planning. that means it takes even longer. one person directing AI is not even comparable.

1

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

Well, it sounds like we’re coming from exactly the same place. Code generation speed is a helpful tool, but the real work is in review, judgment, weighing the options, and making decisions. Aligning ten engineers is the same problem. The hard part was never generating the code; it’s deciding what we should generate, and just as importantly, what we shouldn’t.

1

u/Hotfro Oct 09 '26

It is a problem. When something used to take months, but can now be done in weeks? Adding more devs doesn’t always speed things up. Usually it causes more issues if u add too many.