Re:Don't encode POST bodies like GitHub Copilot, use URLSear...
by IshKebab on Thursday July 01, 2021 @09:55AM
(#27699073)
Right but that all applies to any situation where you use someone else's code. Reading Stackoverflow answers. Blog posts. Even other code on Github.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear...
by aembleton on Thursday July 01, 2021 @08:37AM
(#27698491)
Then it can be picked up in a code review.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear...
by TeMPOraL on Thursday July 01, 2021 @08:52AM
(#27698587)
Spotting bugs in code review is already hard when the code you're reviewing has been written by a human. In this case, at least you can rely on your knowledge of the co-worker who wrote it - over time, you learn the kind of experience they have, the kind of mistakes they make.
Spotting bugs in code that has been generated by a GPT-3 derivative, with all the subtle mistakes that implies, is going to be even harder.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear...
by stackbutterflow on Thursday July 01, 2021 @10:40AM
(#27699468)
In the end we need to tag each piece of code written by copilot. Doing a code review on a piece of code written by a human and on another one generated by copilot is going to be a very different experience. I would be way more wary of a PR containing copilot generated code. Turns out copilot will be a productivity killer.
Re:Don't encode POST bodies like GitHub Copilot, use URLSear...
by aeorgnoieang on Thursday July 01, 2021 @04:34PM
(#27704428)
> Spotting bugs in code that has been generated by a GPT-3 derivative, with all the subtle mistakes that implies, is going to be even harder.
I'm kind of skeptical! I think your claim is reasonable tho so maybe I'm more skeptical of your confidence?
I'd love to read a follow-up from you after you tried using Copilot for an extended period; even (or maybe especially) if it's as bad, or worse, than you expect!
Re:Don't encode POST bodies like GitHub Copilot, use URLSear...
by pyrale on Thursday July 01, 2021 @09:04AM
(#27698678)
But good code reviews are much harder at scale than building good code in the first place. The reason we write code _and_ do code reviews is because doing both is better than doing either.
But copilot isn't even equivalent to a code review: code review is not only checking for correctness. It's also asking questions and helping the author walk through their solution by having them reconsider it. Copilot doesn't ask questions, nor can it answer them or provide a rationale.
Finding a bug in something which seems to be correct can be harder then writing the correct code yourself.
Especially if you might not (yet) fully understand what you are doing.
So Copilot is only a good idea if you are a experienced programmer with the discipline to put any auto generate part through a proper (ad-hoc) code review.
At the same time it looks especially appealing to someone just starting to learn coding...