this post was submitted on 21 Oct 2024
389 points (96.9% liked)

Programmer Humor

32330 readers
44 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] hddsx@lemmy.ca 7 points 1 week ago (2 children)

Hi ChatGPT, write code with no memory or logic errors to perform .

I’m not sure how to talk to ChatGPT, I’m assuming like Siri.

[–] projectmoon@lemm.ee 5 points 1 week ago (1 children)

LLMs are statistical word association machines. Or tokens more accurately. So if you tell it to not make mistakes, it'll likely weight the output towards having validation, checks, etc. It might still produce silly output saying no mistakes were made despite having bugs or logic errors. But LLMs are just a tool! So use them for what they're good at and can actually do, not what they themselves claim they can do lol.

[–] flashgnash@lemm.ee 5 points 1 week ago

I've found it behaves like a stubborn toddler

If you tell it not to do something it will do it more, you need to give it positive instructions not negative

[–] Fixbeat@lemmy.ml 2 points 1 week ago* (last edited 1 week ago)

Just explain what you are trying to do like you would with a person and it will give you the code. It probably won’t quite be what you want so refine your request or post a photo of the errors you might get and try again.

If you are working with a language that you aren’t familiar with it is very helpful. Just remember that it has been trained on all the code on the internet, so it knows a lot.

It is a great tool, with limitations, of course. As the developer you have to know how to apply it to get the most from it. You can see from the downvotes that there’s a lot of negativity towards llms, but I have positive experiences with using ChatGPT.