News for hackers. Stuff that matters.
Re:ChatGPT loses users for first time, shaking faith in AI r... by vorticalbox on Friday July 07, 2023 @03:23PM (#36637036)
Sometimes it's very good I had a list of strings in this format "foo:bar:baz" and needed to convert this into an dict {"foo":{"bar":"baz"}

It wrote me the function and I got on with the rest of my work.

Other times it's just completely wrong or doesn't get what I'm after is might be a "me" problem with my prompting

Re:ChatGPT loses users for first time, shaking faith in AI r... by sebastiennight on Friday July 07, 2023 @05:24PM (#36638519)
It's 11PM and the unclosed curly bracket here is going to prevent me from sleeping.

Did you mean ``` {"foo":{"bar":"baz"}} ```

?

By the way, have you had success at asking GPT to generate unit tests that include edge cases? I've been wondering about that.

Re:ChatGPT loses users for first time, shaking faith in AI r... by vorticalbox on Friday July 07, 2023 @08:15PM (#36639949)
I did mean that I apologize for the missed }.

I haven't had much luck slot of the time it just adds a comment saying "rest of tests here" which is annoying.

I have had good success with it generating things like JSDOC/doc strings and sending git diff and asking it to create a "developer friendly summary for use in a pull request description"

This has definitely increased my work output