| So should I be following up and asking it to refine its solution like this? > The program you wrote doesn't compile. Please fix it such that it compiles. Then, maybe, if we're lucky, we progress to the second step: > Ok, now the program compiles but there are tons of warnings about dead code, unreachable code, blanket trait implementations which aren't actually used, etc. Could you please fix those? Then assuming we clear that hurdle, > Great! The program compiles without warnings, but when I run the tests it panics due to an integer overflow. I see in your encode_rle function you're inexplicably left-shifting a small unsigned integer by 60, which will absolutely for certain cause it to overflow and panic. Would you mind explaining why in the actual fuck you did this and please fix it? Kthx. And on, and on... You know what? No. Fuck that shit. I refuse. I have absolutely no confidence this process will come up with a working, trustworthy implementation of the algorithm. |
- write me a file with the function definitions for this problem. - compile that - write a test that test x outcome - compile that - then have it start writing functionality
If it's trying to one shot a complex problem that you would typically break up, your prompt is probably too vague.