🎙️
13

Why does nobody talk about AI giving wrong code on simple stuff?

I asked an AI tool to write a basic Python loop yesterday and it gave me a function that didn't even run... kept throwing a syntax error. What tools are you using that actually get the basics right?
3 comments

Log in to join the discussion

Log In
3 Comments
river320
river32018d ago
Right, because nothing says "I'll save you time" like an AI that can't even remember a colon. Guess skipping Python 101 was a career choice for it.
6
grantmartinez
Man that's rough. I feel your pain, had the same thing happen with a simple list comprehension. Like come on, that's day one stuff.
4
johnson.faith
I had the same issue with Copilot last week. It gave me a for loop that was missing a colon at the end, which is just basic stuff you learn in week one of Python. I switched over to using a different tool called Codeium, and honestly it's been night and day for me. That one actually catches syntax errors before you run the code and suggests fixes. Also, I found that asking the AI to "write this in the simplest way possible" helped a lot, the less fancy the request the less likely it is to mess up. Still, I always double check the output before running it. These tools are helpful but they're not perfect, you gotta keep an eye on them for the little things.
3