4 ms·
I tried for a long time for chatgpt to help me write a simple function that generated a random array and then summed along the columns. Could not do it. Pastin
by abdullahkhalids 3y ago
I tried for a long time for chatgpt to help me write a simple function that generated a random array and then summed along the columns. Could not do it.
Pasting in an error message, made chatgpt spit out another version of the code with some other error.
- andrewstuart 3y agoGo to ChatGPT and type "write a simple function that generated a random array and then summed along the columns". Run it. If there is an error, either debug it or ask ChatGPT to take a different approach. There's something wrong if you can't get it to do this.
- overgard 3y agoThere's something more wrong if you need it to do this
- MrRolleyes 3y agoOf course that works, but that's not exactly a task that's likely to trip me up or be a bottleneck in my coding efficiency. The things that are are typically either of sufficient complexity i don't even know how to begin describing it to ChatGPT in a useful way, or require enough domain knowledge it's not worth the effort. Of course, it's still an issue if ChatGPT can't generate trivial rust code, but that seems unrelated to the quality of the language itself.
- agent327 3y agoThis is just horrendous. So instead of writing this trivial piece of code yourself you get an AI to write it for you. Then instead of reading and understanding the code you just run it to see what happens. Is there a problem? Just try again, or immediately grab a debugger, because everyone knows that nobody could possibly read and understand a trivial two-line function! Yes, there's something wrong here. But it isn't "not using chatgpt"...