top | item 38805336

(no title)

__mp | 2 years ago

When writing a small application in Go I had great success asking Chat GPT specific questions. It helped me figure out which packages I needed to use and how to interact with them.

I understand that this might not fit your use-case, but it's worth a try. Just be aware that it tends to hallucinate APIs.

discuss

order

bidandanswer|2 years ago

If it does hallucinate, you can just paste it the latest documentation and the hallucination rate goes to nearly zero.

reactordev|2 years ago

Or it apologizes profusely, tells you you’re correct, and fails to fix its reasoning or the examples it gives you.

JimBlackwood|2 years ago

Does it actually consume the documentation? You could (haven’t tried in a while) also have ChatGPT tell you anything you wanted aslong as you stated “It’s been posted on Wikipedia after your last consumed date”.

I feel like telling it that it’s wrong and linking documentation is the same as referring to Wikipedia?

dpflan|2 years ago

I mean you can just run the code and verify its functionality, right? I guess you could be in trouble if you get functioning hallucinations and try to build more around a false foundation.

justin66|2 years ago

The person asking the question seems to be looking for a course or textbook with which to challenge themselves.

What you've described is the opposite of that.

__mp|2 years ago

I understand. But as a long-time programmer I like to explore new programming languages or APIs by working on a small project. I start with a first prototype to get the feel of the language, before I look into extended documentation. Chat GPT helps with this use-case.

It's also more fun to have something which can be easily extended than to start from scratch.

adonese|2 years ago

>Just be aware that it tends to hallucinate APIs.

It gives you nice little hints and a different perspective on your api design itself. I'd have a chat with chatgpt and sometimes I'd miss to share specific code and it just assumes or hallucinate on that.