top | item 37583070

(no title)

deelly | 2 years ago

I know exactly why I don't want to use ChatGPT.

I love to write code, I love to modify existing code too.

I do not love to read and then fix code after someone all the time. With ChatGPT I have to read then understand then fix code after ChatGPT every time.

Also, I do not love to fix code that often contains hallucination.

discuss

order

bumbledraven|2 years ago

First, are you sure using GPT-4?

Second, have you tried pasting any syntax errors you get back into the chat window? Usually, GPT will try to fix them.

Third, you can have GPT write a function for you and then write a different version of the function using a different algorithm along with a test (e.g. a fuzz test) to check whether two functions produce the same output given the same input. This makes it less likely that an error will slip through because both algorithms would have to be produce the same incorrect output for the same input.

deelly|2 years ago

Yes, I used chatGPT-4.

Second, your fix is to verify code generated by LLM and then play with it trying to find a way to fix it. I`m quite sure that I will spend less time and less mental power by writing code in the first place.

Third fix is to play with chatGPT more, and read more code generated by chatGPT trying to find errors in it.

What happened with "reading code written by someone else is harder than writing your own code"?