Re:Building a no-code toxicity classifier by talking to GitH...
by islon on Friday March 25, 2022 @07:00AM
(#30800625)
> For example I can't draw faces but I can recognize a badly drawn face. If I ask an AI: Please draw me a 35 year old man with receding hair and crooked teeth I can quickly validate the result is fit for purpose.
But code is not a face: you can't easily judge if it's correct or not, if you could you wouldn't need copilot in the first place, so now you have to trust it's correct and, if it isn't, you need to search for the correct answer anyway.
Re:Building a no-code toxicity classifier by talking to GitH...
by flaviut on Friday March 25, 2022 @11:00AM
(#30802985)
They provided an example situation right under "For example a scenario may be:".
Their experience matches mine in my use of copilot.
Re:Building a no-code toxicity classifier by talking to GitH...
by croon on Friday March 25, 2022 @08:19AM
(#30801206)
Verifying is inherently both easier and less energy intensive than producing.
I can critique a great book I couldn't write. I can marvel at John Carmack's early iD code without having been able to come up with it. I can be immensely impressed by what golfers produce for a mundane problem.
I'm not saying this is what copilot produces, but the concept could absolutely be useful, in theory.
For example I can't draw faces but I can recognize a badly drawn face. If I ask an AI: Please draw me a 35 year old man with receding hair and crooked teeth I can quickly validate the result is fit for purpose. If it is not what I want I can modify the query. I then learn quickly how to prompt the AI to give me what I want.
In the example you give we can assume that the AI has produced a plausible option even if wrong. For example a scenario may be:
The key point is you have to know what you want and be able to recognize a correct result. Validating a correct result is often easier than coming up with the correct result. You have multiple strategies to validate the result.Testcases, compilation, code review, documentation, IDE intellisense
This obviously gets harder the larger the amount of code copilot is being asked to generate. But good software engineering practises still stand. Try to keep your functions and modules small and to the point.