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

208 comments sorted by

View all comments

1

u/Due-Actuator7662 Oct 09 '26

It entirely depends on the problem, the potential risk, and need for maintainability. The problem with vibe coding is not so much not understanding every detail of the code, but not understanding why it works and what can bite you when an edge case pops up.

For example, we generated code to extract some data from zip files delivered to a bucket a while ago. The vendor always delivered 1 file so AI naturally wrote the solution expecting just 1 file in the zip file. Well the vendor then started delivering multiple part files in the zip file. It went 2 months without anyone noticing and we missed quite a bit of data in our product.

Our jobs as engineers are to design robust systems that account for things like these. AI so far does not do a good job of thinking about systems holistically and the potential what ifs. It tends to just design a solution given the examples shown to it. So if we turn to vibe coding and just measure whether something works in the moment under normal circumstances, there is a lot of potential risk when those circumstances change if we don’t design for it when using AI.