this post was submitted on 06 Dec 2023
674 points (96.7% liked)

Programmer Humor

32557 readers
276 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

cross-posted from: https://fed.dyne.org/post/43780

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 42 points 11 months ago (3 children)

I never copy code from chatgpt. It's not my code and it probably doesn't work. However it is great at making suggestions on how to tackle a problem or how to improve your code. Use ChatGPT like Stack Overflow, with instant replies.

[–] [email protected] 14 points 11 months ago

This. I always use that example, ChatGPT is stack overflow or a very eager intern. Review and make test cases

[–] Lucidlethargy 7 points 11 months ago (3 children)

Man, it's great until it contently feeds you incorrect information. I've been burned far too many times at this point...

[–] [email protected] 11 points 11 months ago (1 children)

That's why you should always verify the information with other sources. Just like information you get from any other website/person. It's not any different.

[–] [email protected] 5 points 11 months ago (1 children)

I only verify information I get on the Internet if I don't agree with it or need to use it in an argument, and I'm not about to change

[–] [email protected] 3 points 11 months ago

Oof, glad I'm not alone

Wait...

[–] [email protected] 7 points 11 months ago* (last edited 11 months ago)

TBH, if you can't almost instantly figure out why and how ChatGPT suggested bad code, you shouldn't be using it at all - you're out of depth.

It's why I'll gladly use it to suggest markdown or C code, but never for a complex Python library.

[–] [email protected] 5 points 11 months ago

Blaming the AI for misinformation is like blaming Google for giving you bad search results.

Learn how to parse the data and fact check it. Usually you can get a hyperlink to the source to see if it's even reasonably trustworthy.

[–] [email protected] 4 points 11 months ago

Plain copy paste without a critical view is not recommended, but it surely provides good pieces of code from time to time. Especially in obscure frameworks/languages, compared to what can be googled.

ChatGPT 4 is a really big difference with 3.5 though. What took me hours together with the 3.5, was fixed in a few minutes with 4.