General > General Technical Chat
ChatGPT for code generation: a marvel to watch!
<< < (3/3)
tszaboo:

--- Quote from: eti on March 25, 2023, 09:45:34 am ---It didn’t work.
I keep getting going in circles for an hour, and it kept issuing an incomplete code… And every time I asked it to regenerate it generated a different program to do the same thing. I gave up

--- End quote ---
I was able to make it write functioning code, but it took a lot of trial and error.
I had to write prompts that corrected the previous issues with the code, or instructed it not to use certain libraries.
My prompt ended up 6-7 lines long, if I went above that, it ignored the last instructions.

It was a windows shell script to scan a folder and call FFMPEG to convert something, so not trivial, plus I didn't want to figure out all the syntax for everything.
paulca:
Good point and not something I have tried.  Instead of correcting it "only".  Correct it by restating your problem with that particular point clarified.  Continue restarting the whole problem statement with each prompt.

Nice.  Thanks, I might try that.
mfro:
That's what I've seen as well. You need to be very specific on what you want and in most cases the outcome is "just about" right. And you still must be an expert in the topic to be able to judge about the result.

That's even more frustrating than teaching the new hire that knows a lot but doesn't bring any common sense and experience.

At least you can yell at the latter  8).

paulca:

--- Quote from: mfro on March 30, 2023, 09:59:04 am ---That's what I've seen as well. You need to be very specific on what you want and in most cases the outcome is "just about" right. And you still must be an expert in the topic to be able to judge about the result.

That's even more frustrating than teaching the new hire that knows a lot but doesn't bring any common sense and experience.

At least you can yell at the latter  8).

--- End quote ---

True, true.  However I always question common sense.  If you are inside a ping pong ball it's common sense that the world is white.  Someone with a golf upbringing would be awfully confused by your "common" sense.

"Common sense" says that crows are black.

There is actually a really good book on "common sense" and how it's actually factually wrong.  I'll dig out the name if I come across it again.  It had pedantic crap like "How many nostrils do you have?", the answer is apparently 4, because they evolved from the in and out opennings of the gills.  But it covers the crows "strawman" and many others.  Written in a fairly funny and sarcastic style.
Navigation
Message Index
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod