4 ms·
It shows the suggestions line by line, and only shows the best guess. It's not more intrusive than Intellisense. You can actually see all the code blocks Copil
by fzaninotto 5y ago
It shows the suggestions line by line, and only shows the best guess. It's not more intrusive than Intellisense.
You can actually see all the code blocks Copilot is thinking about if you want to, but that is indeed a distraction.
- fabiospampinato 5y agoThe problem I see with that is that's not possible for it to understand well which code is the best, GPT-3 is trying to mimic human writing in general, the thing is most human code is garbage, if this system was able to understand how to make code better you could keep training it until you had perfect code, which is not what the current system is giving you (a lot of the times anyway).
- fzaninotto 5y agoI guess you miss the point. It's not trying to suggest the perfect code. Only you know it. It's saving you time by writing a good (sometimes perfect) first solution based on method/argument names, context, comments, and inline doc. And that is already a huge boost in productivity and coding pleasure (as you only have to focus on the smart part).
- fabiospampinato 5y agoMaybe you are right, in my experience either the code you have easily available to you (either because another person or a computer wrote it) is perfect for your use case (to the best of your knowledge anyway) or rewriting it from scratch is usually better than morphing what you have into what you need.
- drusepth 5y ago>if this system was able to understand how to make code better you could keep training it until you had perfect code Based on the FAQ, it looks like some information about how you interact with the suggestions is fed back to the Copilot service (and theoretically OpenAI) to better improve the model. So, while it may not understand "how to make code better" on its own, it can learn a bit from seeing how actual devs do make code better and theoretically improve from usage.
- Trollmann 5y agoYou're missing the problem he stated: Code written by humans is usually bad so the model is trained on garbage.
- Jeff_Brown 5y agoThe proof is in the pudding. I was skeptical too but the testimonials here are impressive.
- apexalpha 5y agoThe animated example on https://copilot.github.com/ https://copilot.github.com/ shows it suggesting entire blocks of code, though.
- verst 5y agoIt does actually suggest entire blocks of code. I haven't quite figured out yet when it suggests blocks or lines - if I create a new function / method and add a doc string it definitely suggests a block for the entire implementation for me.
- ehsankia 5y agoI see, I think the most useful case for me would be where I write a function signature+docstring, then get a list of suggestions that I can browse and pick from. Do you have examples of what the line ones can do? The site doesn't really provide any of those.
- verst 5y agoTake a look at this minimal example I just created where I did just that -- created a new function and docstring. This example is of course super simple - it works for much more complex things. https://gist.github.com/berndverst/1db9bae37f3c809e5c3f56262c0a1092 https://gist.github.com/berndverst/1db9bae37f3c809e5c3f56262...
- vitus 5y agoIs there actually a search.json endpoint? https://github.com/HackerNews/API https://github.com/HackerNews/API doesn't list this as a valid endpoint. Indeed, when I try to access it via curl, I get a HTTP 405 with a "Permission denied" error (same result when I try to access nonexistent-endpoint.json). Based on the HN search on the website, I'd expect the correct autocomplete to involve hn.algolia.com [0]. [0] https://hn.algolia.com/api https://hn.algolia.com/api points at https://hn.algolia.com/api/v1/search?query= https://hn.algolia.com/api/v1/search?query=... To me, this points at the need for human input with a system like this. There is a Firebase endpoint, yes, and Copilot found that correctly! But then it invented a new endpoint that doesn't exist.
- grumple 5y agoEven snippets are so bad I have to turn them off. I can't even fathom how bad the suggestions are going to be for full blocks of code. But I guess I'll see soon...