3 ms·
> If you had to code it you're at least thinking about edge cases etc. If you didn't code it you REALLY need to be thinking about edge cases, etc. ChatGPT (or
by Volundr 4y ago
> If you had to code it you're at least thinking about edge cases etc.
If you didn't code it you REALLY need to be thinking about edge cases, etc. ChatGPT (or stack overflow for that matter) makes tons of mistakes, at least as much as your average human.
Personally I find it harder to validate the behavior of code I didn't write than code I've gone through the creation process of myself.
- varispeed 4y agoIt's good to employ TDD for this. Write a test and then ask ChatGPT for a solution. If it fails the test tell it and it will come up with fixes. Sometimes it is not perfect and a couple of times I had a case where ChatGPT couldn't code something and it would go into a loop coming back to the permutation of wrong answer over and over. Most of the time starting over with different prompt describing the same task in a different way fixes it.