They have 4 hand picked examples on their homepage: https://copilot.github.com/ One has the issue with form encoding: https://news.ycombinator.com/item?id=27697884 The python example is using floats for currency, in an expense tracking context. The golang one uses a word ("value") for a field name that's been a reserved word since SQL-1999. It will work in popular open source SQL databases, but I believe it would bom…
> This product seems like it needs some more thought. Maybe a way to comment, flag, or otherwise call out bad output? Wait for your colleagues to use it, fix the bad code in the pull request, and wait for copilot to learn from the new training data you just provided!
Copilot regurgitating Quake code, including sweary comments
221–230 of 672 posts
Re: Copilot regurgitating Quake code, including sweary comments
#222Earlier quoted context omitted.
> The python example is using floats for currency. Dumb question, but what is the proper way to handle currency? Custom number objects? Strings for any number of decimal places?
A lot of good answers, but they mostly relate to accounting types of problems (which granted, is what you need to do with currency data 99% of the time) I’d just add that if you are building a price prediction model, floats are probably what you need.
Re: Copilot regurgitating Quake code, including sweary comments
#223This is utterly damning. I have already instructed my team that Copilot can never be used for our projects. Compromising the product because of unknowable license demands isn't acceptable in the professional world of software engineering. But if we put the licensing to one side for a moment... 1/ Everything I've seen it generate so far is 'imperative hell'. It is practically a 'boilerplate generator'. That might be u…
I'd be more interested in a tool that notices patterns and boilerplate. It could offer a chance for generalization, abstraction or use of a common pattern from the codebase. This is of course much harder.
Re: Copilot regurgitating Quake code, including sweary comments
#224They have 4 hand picked examples on their homepage: https://copilot.github.com/ One has the issue with form encoding: https://news.ycombinator.com/item?id=27697884 The python example is using floats for currency, in an expense tracking context. The golang one uses a word ("value") for a field name that's been a reserved word since SQL-1999. It will work in popular open source SQL databases, but I believe it would bom…
The Golang example would not even compile, because `sql` is not imported.
Re: Copilot regurgitating Quake code, including sweary comments
#225Re: Copilot regurgitating Quake code, including sweary comments
#226They have 4 hand picked examples on their homepage: https://copilot.github.com/ One has the issue with form encoding: https://news.ycombinator.com/item?id=27697884 The python example is using floats for currency, in an expense tracking context. The golang one uses a word ("value") for a field name that's been a reserved word since SQL-1999. It will work in popular open source SQL databases, but I believe it would bom…
Re: Copilot regurgitating Quake code, including sweary comments
#227Re: Copilot regurgitating Quake code, including sweary comments
#228Earlier quoted context omitted.
> ...may not always work, or even make sense... Naively, as someone who just heard of this - that sounds worse than useless. If you can't trust its output and have to verify every line it produces and that the combination of those lines does what you wanted, surely it's quicker just to write the code yourself?
Then write the code yourself. It's not like you're forced to use this demo.
Re: Copilot regurgitating Quake code, including sweary comments
#229Earlier quoted context omitted.
Actually the indentation of the first comment and the lack of preprocessor show it's not copied from this code directly but from Wikipedia ( https://en.wikipedia.org/wiki/Fast_inverse_square_root#Overv... ) So It could be that the Quake source code is not part of the training set but the Wikipedia version is.
While I strongly doubt they would use Wikipedia as a training set, has anyone done a search of GitHub code to see if other projects have copied-and-pasted that function from Wikipedia into their more-permissive codebases?