

Honestly, I think what you consider „good code“ is just shifted from what the previous commenter considers „good code“. Prompting is about giving enough information so the AI can solve the task without needing to reconstruct a lot of context. Most people using AI somewhat regularly will have figured out to write good enough prompts. I‘ve never seen AI generate perfectly good code beyond hello world and the fibonacci sequence. And by perfectly good I mean I wouldn’t change beyond 30% of what it produces, which is not a high bar.




Honestly, I would argue about the complexity of it. The discord API is straightforward, and what you’re describing doesn’t sound that complicated.
And we have seen fairly complex stuff that AI did, but if it does pull it off somehow, the next question is quality.
I just read a bit of AI code a few minutes ago, and it didn’t take long to step over a chain of if / else if statements where only the first if statement if reachable, the rest is not. The code should’ve been one if statement followed by a match statement. Not sure why the LLM thought “combine” two logically completely separate statements into one. And that was in 1.5kloc it generated, so not much. There’s probably even more, I just read a fraction of it.