(no title)
nlehuen | 1 year ago
However in my experience the system is much more powerful than you described. Maybe this is because I'm mostly writing C++ for which there is a much bigger training corpus than JavaScript.
One thing the system is already pretty good at is writing entire short functions from a comment. The trick is not to write:
function getAc...
But instead: // This function smargls the bleurgh
// by flooming the trux.
function getAc...
This way the completion goes much farther and the quality improves a lot. Essentially, use comments as the prompt to generate large chunks of code, instead of giving minimum context to the system, which limits it to single line completion.
Aachen|1 year ago
Time will tell whether it outputs worse, equal, or better quality than skilled humans, but I'd be very wary of anything it suggests beyond obvious boilerplate (like all the symbols needed in a for loop) or naming things (function name and comment autocompletes like the person above you described)
munksbeer|1 year ago
It isn't something I worry about at all. If it doesn't work and starts creating bugs and horrible code, the best places will adjust to that and it won't be used or will be used more judiciously.
I'll still review code like I always do and prevent bad code from making it into our repo. I don't see why it's my problem to worry about. Why is it yours?
caeril|1 year ago
This isn't a new concern. Thoughtless software development started a long time ago.
miki123211|1 year ago
Often when I don't know exactly what function / sequence of functions I need to achieve a particular outcome, I put in a comment describing what I want to do, and Copilot does the rest. I then remove the comment once I make sure that the generated code actually works.
I find it a lot less flow-breaking than stackoverflow or even asking an LLM.
It doesn't work all of the time, and sometimes you do have to Google still, but for the cases it does work for, it's pretty nice.
Aachen|1 year ago
jappgar|1 year ago
Copilot will autocomplete entire functions as well, sometimes without comments or even after just typing "f". It uses your previous edits as context and can assume what you're implementing pretty well.
infecto|1 year ago
lupire|1 year ago
cryptonym|1 year ago
xp84|1 year ago
michaelbuckbee|1 year ago
AI coding assistants are generally really good at ramping up a base level of tests which you can then direct to add more specific scenario's to.
unknown|1 year ago
[deleted]
tomhallett|1 year ago
hecanjog|1 year ago
alickz|1 year ago
gniv|1 year ago
nlehuen|1 year ago