3 ms·
ChatGPT can already do that. You can ask questions about the code, make suggestions and it will take this into account and write improved code. You can tell i
by welshwelsh 4y ago
ChatGPT can already do that. You can ask questions about the code, make suggestions and it will take this into account and write improved code. You can tell it the code it wrote produces an error, and it will then find the error, explain what it did wrong and fix it.
- SketchySeaBeast 4y agoPersonally, if I can track the problem down to a specific chunk of code and know the input and expected outputs, I'm 99% of the way to the solution.
- bcrosby95 4y agoYou can also tell it the code it wrote produces an error-that-isn't-an-error, it will find that "error", explain what it did "wrong" and "fix" it. If you don't understand the program ChatGPT wrote, it will happily butcher it for you, because it doesn't really understand it either.
- thedorkknight 4y agoI did this and it is pretty inconsistent. It kept telling me I was using the wrong version of a library (which from what I could tell by looking at documentation was just not correct, but I didn't look into it too long), and at one point it just kept insisting that it's code solution was correct when in reality the error was due to it importing two different libraries that use the same namespace, which led to an error saying it couldn't find the function being called.
- furyofantares 4y agoWhat I've found is each iteration with ChatGPT is alright at fixing or adding to the existing code per my instruction but every iteration includes a significant chance of introducing a new bug or simply forgetting some piece of the existing code in the next iteration.