this post was submitted on 06 Dec 2023
701 points (96.8% liked)

Programmer Humor

32483 readers
587 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
[–] stebo02@sopuli.xyz 44 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.

[–] Railcar8095@lemm.ee 17 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@sh.itjust.works 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...

[–] stebo02@sopuli.xyz 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.

[–] finestnothing@lemmy.world 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

[–] kamenlady@lemmy.world 3 points 11 months ago

Oof, glad I'm not alone

Wait...

[–] Gabu@lemmy.ml 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.

[–] c0mbatbag3l@lemmy.world 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.

[–] tweeks@feddit.nl 5 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.