Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I asked ChatGPT last night how to debug a C function that was driving me nuts and it told me what I was doing wrong in one second.


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


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.


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


Spot on.

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%.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: