1756
we are safe (discuss.tchncs.de)
you are viewing a single comment's thread
view the rest of the comments
[-] 30p87@feddit.de 11 points 8 months ago

The only thing ChatGPT etc. is useful for, in every language, is to get ideas on how to solve a problem, in an area you don't know anything about.

ChatGPT, how can I do xy in C++?
You can use the library ab, like ...

That's where I usually search for the library and check the docs if it's actually possible to do it this way. And often, it's not.

[-] AeroLemming@lemm.ee 12 points 8 months ago

Yeah, it's amazing at showing you the idiomatic way to do really specific, narrow-scoped things in a language you're not familiar with... except for when it's wrong.

[-] 31337@sh.itjust.works 3 points 8 months ago

It's good at refactoring smaller bits of code. The longer the input, the more likely it is to make errors (and you should prefer to start a new chat than continue a long chat for the same reason). It's also pretty good at translating code to other languages (e.g. MySQL->PG, Python->C#), reading OpenAPI json definitions and creating model classes to match, and stuff like that.

Basically, it's pretty good when it doesn't have to generate stuff that requires creating complex logic. If you ask it about tasks, languages, and libraries that it has likely trained a lot on (i.e. the most popular stuff in FOSS software and example repos), it doesn't hallucinate libraries too much. And, GPT4 is a lot better than GPT3.5 at coding tasks. GPT3.5 is pretty bad. GPT4 is a bit better to Copilot as well.

[-] Stumblinbear@pawb.social 2 points 8 months ago

I've found it great for tracking down specific things in libraries and databases I'm not terribly familiar with when I don't know the exact term for them

this post was submitted on 20 Nov 2023
1756 points (98.1% liked)

Programmer Humor

31687 readers
32 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS