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
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.
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
I am not sure how people thought this was going to play out though. From 5/30/23 Pew survey
"58% of US adults know ChatGPT; only 14% have used it, with mixed opinions on its utility"
As much as that 42% that hadn't even heard of chatGPT is mind blowing, imagine hearing of chatGPT but not even being curious enough to be bothered.
90% can rot their brains on tiktok while 10% of us become actual cyborgs. We will see how that works out for the 90%.