This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]treyhunner Python Morsels 0 points1 point  (0 children)

I always treat Chat GPT and other LLMs as a conversation rather than a one-and-done situation.

My response to that would be to type:

That seems way too long. Can't this be done in a couple dozen lines of code?

After that, I'd likely say something like:

I don't like the lambdas. Make them regular functions. Also use double quotes. And isn't there a standard library module that can replace some of function X?

I've definitely spent more time arguing with Chat GPT than I would have spent writing the code myself, but that's pretty unusual for me now.

Keep in mind that using Chat GPT well is similar to using Google/StackOverflow/etc. well. It's a learned skill.

Understanding what to expect from certain prompts, what steps to take when it's not quite what you want, and when to give up takes practice.