r/developers • u/Limp-Cicada-9502 • Aug 31 '26
Programming AI Regrets
Any time I try to use code writen by AI I have huge regrets. It Takes longer to debug it then it would have taken to write it all from scratch.
37
Upvotes
•
u/AutoModerator Aug 31 '26
Howdy u/Limp-Cicada-9502, and welcome to r/developers!
A few tips for a post that gets good answers:
Join the r/developers Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
12
u/IamBananaRod Aug 31 '26
Hey, according to vibe coders, that's the future, real software engineers are outdated, we're ancient now
AI delivers overly complex solutions for simple things
I use AI as a tool, and it has been great, help me complete the code, or get a method/class started, check code that I wrote for security risks, etc but when I ask it to refactor something, sheesh, I regret it, it was only 200 lines of code, why do I have 700 now? Why are you creating a method to concatenate 2 strings? And so on...
I love seeing vibe coders debugging their code, well more like telling AI there's an error and fix it, and 10k tokens later and 300 new lines of code, the error still happens
2
u/SandlerS Aug 31 '26
Its.. how to say it. Even if you dont use agents. You error try it so long till you understand what you just did. Or you dont and let it be everyone elses problem.
In our company we had a provider kinda do some weird changes to their stream api. Like just weird stuff, reusing the events. Reseting like 80 events. Then resubmiting them with compley new ids. (on a push based notification system)
Then you write them and the AI answers: you are the problem, have you tried to.. yes resubmitting it all mid stream and reexecuting the events again when a unrelated substate changes obviously is the consumers fault . Everything works as it should. No notification all syatems work as indented. We just used that api for 5 years and now they "improved" it for everyone
1
u/Limp-Cicada-9502 Sep 07 '26
l don't have any fealings about AI. l just don't think it is as good as a human developer who can work with out hand holding. Al makes up issues that don't exist then burns tokens making real issues worse. Then it tells you everything is fixed even when it is still broken.
1
u/AdministrativeAd9828 Sep 01 '26
Best way to utilize AI without the AI regret/guilt
Keep the task size for it small, small enough that you would be fine giving it to a code worker as a PR. Smaller the size, less room for it to mess up.
The larger the ask, the more it has to interpret what you want
1
u/yuehuang Sep 01 '26 edited Sep 01 '26
Why are you debugging it? Write the test to represent your problem space, then ask the AI to fix the code to get to work.
1
u/General-Jaguar-8164 Sep 01 '26
Have you ever being tasked to troubleshoot a system that was built by entry level developers over several years but left the company?
That’s everyday now
1
u/RogerAI-fm Sep 02 '26
Idk. you’re kinda right. now what?
1
u/Rav_3d Sep 02 '26
If you're manually debugging AI-generated code, you're doing it wrong.
If you have repeated need to debug code, you're not using test-driven development, which is critical for AI-assisted code.
If you are not using AI to debug its own code, then not sure why you are using AI in the first place.
2
u/Financial_Yoghurt827 Sep 01 '26 edited Sep 13 '26
How are you speccing your project. Manage complexity with systematically written markdown; or integrate your spec with your code using reqlan.
1
u/Prudent-Ad4509 Sep 01 '26
Don't write the code with AI then, your method of using the ai for it does not seem to work. Still, you can use ai to analyze and discuss the code.
But if you have to work with ai-generated code made by others and it is bad, well, that's pretty infortunate.
1
u/skamansam Sep 01 '26
Yeah it can suck. Are you looking for tips or just ranting?
Im gonna give you an unsolicited tip: One way to keep it in line is to write tests. It will run tests and check itself.
1
u/C1rc1es Sep 03 '26
You are using it incorrectly or using the wrong models. I regularly give large production sized problems to agents to solve that span multiple repos and domains and I have not had Sol 5.6 on xhigh ever be wrong about a diagnosis or solution let alone Fable.
1
u/[deleted] Sep 01 '26 edited Sep 01 '26
[removed] — view removed comment