News for hackers. Stuff that matters.
Re:GitHub Copilot X: The AI-powered developer experience by teaearlgraycold on Wednesday March 22, 2023 @11:21AM (#35262409)
I use them all the time with success. For copilot it’s very useful for writing tests and autocompleting repetitive code. Like writing a Typescript interface that matches a JSON object, or listing properties of an object into an array. ChatGPT is at worst a good rubber duck, and at best a superpowered documentation tool. If I ever get confused by docker or some popular JavaScript library it’s able to give me a custom tailored answer that usually solves my problem on the first or second try.

Neither of them are any good at just writing a ton of code (unless the code is mostly boilerplate). But they’re amazing keystroke savers and a next generation stack overflow.

Re:GitHub Copilot X: The AI-powered developer experience by danenania on Wednesday March 22, 2023 @01:07PM (#35264030)
What would be amazing for Copilot + Typescript is if it could somehow integrate with the TS compiler (or perhaps just get sufficient fine-tuning on the TS type system) so that it only generates valid/type-safe suggestions.
Re:GitHub Copilot X: The AI-powered developer experience by FractalHQ on Thursday March 23, 2023 @07:13AM (#35272930)
I think about this often. If copilot could hook into the Typescript language server, it would be much less likely to hallucinate and generate blatantly wrong suggestions.
Re:GitHub Copilot X: The AI-powered developer experience by 8organicbits on Wednesday March 22, 2023 @07:55PM (#35268731)
How often are you seeing bogus documentation? I see that concern often mentioned. I tried ChatGPT and the first question got an obviously wrong answer. That seems worse than stackoverflow to me. Maybe I'm not holding it right?
Re:GitHub Copilot X: The AI-powered developer experience by teaearlgraycold on Thursday March 23, 2023 @03:12AM (#35271410)
I think it entirely depends on how popular the library is. React for example is so common online that GPT has the whole API figured out.

Even if it’s wrong the stakes are low. Just paste the error back into the chat and it will give you an alternative.

But the real solution here is the new Copilot X for docs. Feed in the code base and all documentation and now you have the real source of truth at the helm.