> playing a slot machine hoping
I still believe the slot machine analogy holds to some extent, but I can honestly say my winning percentage is at least 90% for one shot generated code now.
I think if you know it's limitations (inlcluding your own), I don't think about hoping anymore.
I should note that when I say AI, I mean the collective models from all the major providers. The most important lesson is, you need to ask around.
> There’s definitely a skill to using AI but it just doesn’t generalize very well.
This I agree with. The only way working with AI can really be benefical outside of dealing with AI is, we are visited by extremely intelligent beings that will fuck up in the weirdest ways.
When it works the first time you’re done, when it fails you spend more time on it. This biases the cognitive investment around failure.
> I don't think about hoping anymore.
Running the exact same prompt again that already failed doesn’t have a that high success rate, but it’s also very low effort. So IMO it’s often worth attempting.
AI has definitely gotten good enough that its one shot success rate is better than most developers.
whats your fave/best one shot code gen?
mine def has to be the initial impl of my python to my personal fave compiler ir. i got claude chat to write it in two sentences. 4 turns helping it rmeemver where it put shit becsuse of transcript issues
I wish I could've one shoted this 200 LoC PR: https://github.com/ncruces/wasm2go/pull/42/changes#diff-5181...
I'd really like to know the prompt, because I did try and, this took me way too long to figure out.