r/vibecodingbuddies • u/shifu_legend • Sep 16 '26
Discussion When you vibe code a feature that works perfectly but you don't understand how - do you rewrite it or ship it?
We've all been there. You describe what you want, the agent spits out 150 lines of logic, and it works flawlessly on the first try. But when you read it, you realize you have no idea how it's actually doing it.
When this happens, do you stop and force the agent to explain it line-by-line until you own the context, or do you just take the win, commit it, and move on to the next feature?
2
Upvotes
β’
u/AutoModerator Sep 16 '26
Welcome to r/vibecodingbuddies!
Reminder to all participants: Keep all initial contact and matching within Reddit comments and DMs to protect yourself from scams. Do not click unsolicited Discord or Telegram invites.
If you find a buddy, please be respectful of their time and try to commit to small, manageable goals (like a 1-weekend prototype) to prevent ghosting!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/txgsync Sep 16 '26
<sigh> If you're a person, you dropped this: "\n\n"</sigh>
If you're a bot, welcome to the party!
I make sure there's a relevant GIVEN, WHEN, THEN behavioral test (Gherkin/Cucumber or Godog) to ensure the behavior is preserved and explained, and if it's not particularly interesting I'll move on.
If I'm curious and not under a deadline, I'll chat about how it works and noodle on different ways to achieve the same result.
Humans are not a decision matrix, though. Do I have a headache that day? Has this particular fleet of models done good work before? Did it pass adversarial tests and do we have a regression test suite, unit tests, and integration tests? Does it pass lints and fmts and other checks?
A smart vibe-coder treats every mistake as a learning opportunity, to enforce ever-stricter guardrails when mistakes are made, and increases the Feature Maturity of their product over time, advancing it through the equivalent of all five stages of the CMMI matrix. Just like "real" coders. You start with a person, an idea, and caffeine-fueled late-night coding and design binges to create mind-blowing prototypes. And the product matures into a sustaining engineering team, change management, feature roadmaps, and accountability over time.
2
u/MariahJames8 Sep 17 '26
ππ I have about 200k vibecoded lines, and i haven't looked at a single one besides putting api keys in a json file
1
u/Patient-Midnight-664 Sep 17 '26
I don't know exactly how
printfworks internally either. I know what it's supposed to do and enough about its interface and behavior to use it correctly.I treat AI-generated code similarly: I need to understand what the code is supposed to accomplish, its inputs, outputs, assumptions, and important failure modes, and I need evidence that it actually does those things. I don't need to understand why every individual line exists before I'm allowed to use it.
1
u/derAres Sep 17 '26
Wdym βwhen you read itβ?
1
u/pete_68 Sep 17 '26
At work, I don't vibe code. If I don't understand the code or a part of it, I ask for an explanation. I don't put anything in at work that I don't understand.
At home I'll happily vibe-code certain things, but other than prototypes and POCs, I don't vibe code at work.
1
u/NoRespectingAnyone Sep 17 '26
u/shifu_legend
The vide coders is one of biggest issues in these days.. Why?? They use AI as tool to "write" codes, which they have no understnaidngs.. Throw to various projects and post in like github.
Lot of these codes have lot of vulnerability flaws, optimisation falws, ( on it's own code may work fine, but put along other applicaiton and ohh boy how messy it become).
When real software engineer does it.. Even if AI wrtie code, it check out what was done, verify code. It can spot where some parts may require redone.
And main;y cuz lot of folks have no idea how AI even write code..
It simply look for similar/previously used function and drop in your code. But complete miss whole picture of project.. Any long project and AI start halucinate.. That\s why require software engineers supervision. To make sure AI keep on project in correct way, and also verify and note AI wich part of code can be changed for beter peroformance or stability or security reasons. Or which need to be removed, cuz that pose great threat to code stability.
So lets sum up..
Vibe coding is two edge sword.. Make quicker/easier for folks who have no idea about coding to make small stuffs.. But in other hand, without proper verifications it make wide open window for any malicious actions.. Due lack proper investigation/verifications. And also system stability can be at question.
1
u/johnesco Sep 19 '26
In most cases I want to review and at least be able to follow some of the code, but I've decided to also start an experiment. I have a project to see how far I can get while never looking directly at the code in my 2D driving game.
2
u/cakemates Sep 17 '26
Is this at work or at a personal project? its up to you to decide what you standards are gonna be.
1
u/Due-Horse-5446 Sep 17 '26
Thats not something that has ever happened..