I’ve only used an LLM (you can guess which one) once to write code. Mostly because I didn’t feel like writing down some numbers and making a little drawing for myself to solve the problem.
And because a friend insisted that it writes code just fine.
But it didn’t. It confidently didn’t. Instead, it made up something weird and kept telling me that it had now “fixed” the problem, when in reality it was trying random fixes that were related to the error message but had nothing to do with the actual core problem. It just guessed and prayed.
In the end, I solved the problem in 10 minutes with a small scribble and a pen. And most of the time was spend drawing small boxes, because my solution relied on a coordinate system, I needed to visualize.
Thorry84@feddit.nl 1 month ago
In my experience it will write three paragraphs about the mistake, what went wrong and how to fix it. Only to then output the exact same code, or very close to it, with the same bug. And once you get into that infinite loop, it’s basically impossible to get out of it.
spooky2092@lemmy.blahaj.zone 1 month ago
The easiest way I found to get out of that loop, is to get mad at the AI so it hangs up on you.
nectar45@lemmy.zip 1 month ago
I was in that problem too but you can at least occationally tell it to “change the code further” and it can work.
Often YOU have to try and fix its code though its far from perfect…