News for hackers. Stuff that matters.
Re:62% of code generated by GPT-4 contains API misuses by enumjorge on Sunday August 27, 2023 @09:18PM (#37288539)
It's comments like these that make me wish I could stand behind the chair of the people who get these results because I feel like there's something lost in translation. I don't know if I'm taking your comment too literally but this part confuses me:

> It writes lots of code before I even think about what I was going to do in that file.

If you haven't even thought of what you want to do in the file, how are you prompting Copilot to write the code you need? Am I understanding correctly that Copilot not only generates the correct code, but it's also able to deduce what code you meant to ask for without any input from you? I don't see how this is possible except in the uncommon case where you are bringing a file to be more in line with other files in your code base that have a similar structure.

I do think Copilot can be useful, but I'm confused at how different my experience is from what others are getting out of the tool.

Re:62% of code generated by GPT-4 contains API misuses by abootstrapper on Sunday August 27, 2023 @09:38PM (#37288657)
ChatGPT 4 is amazing! I use it when I’m blocked to get unstuck. I don’t need perfectly functioning code, just something to get my gears turning. I use it to review my own code. It often has pretty good suggestions, or can validate my approach. And I use it to sketch out unit tests for me. I still have fill in pieces, but it’s absolutely improved my output. It’s like having an egoless programming partner. Yeah, it makes mistakes, but I treat the AI like a programming buddy, not a flawless code wizard. It doesn’t solve problems for me, but we come to solutions together.
Re:62% of code generated by GPT-4 contains API misuses by squeaky-clean on Sunday August 27, 2023 @09:40PM (#37288672)
> Am I understanding correctly that Copilot not only generates the correct code, but it's also able to deduce what code you meant to ask for without any input from you?

You can know what you want to program, but not how you would approach the code. "Hey ChatGPT, how do I draw a curved line plot in JUCE?"

Re:62% of code generated by GPT-4 contains API misuses by thomasfromcdnjs on Sunday August 27, 2023 @10:07PM (#37288833)
What I find useful is I write two lines of comments when starting a new file, about what it is going to do.

Otherwise, even just creating a function, generally they will be filled out automatically.

I suppose I'm quite big on naming (vars and functions)

Maybe if your language or code is more terse, it might struggle more.