3 ms·
I'm torn on this, on one hand I use CoPilot and I quite enjoy it, on the other I don't love the idea of it injecting copyrighted code. That said I've not seen a
by joshstrange 4y ago
I'm torn on this, on one hand I use CoPilot and I quite enjoy it, on the other I don't love the idea of it injecting copyrighted code. That said I've not seen any example of it auto-completing something for me that could legitimately be considered "copyrighted code". Like if the boilerplate it spits out (that is specific to my codebase) is copyrighted then we are all fucked. Same deal with simple filter/map loops that it spits out. Sorry I just don't care about that at all.
You can't convince me that typing
get item() {
and it autocompleting it to
get item() {
return (itemId: string) => {
return this.items.find((item) => {
return item.id === itemId;
}) || null;
};
}
is using copyrighted code, especially since I've written scores of nearly identical functions on my vuex (vuex-module-decorators) stores long before I touched CoPilot. Maybe it's "stealing" from my own code? Good! That's exactly what I want, follow my previous patterns. And honestly if it auto-suggests that to someone else then I don't care.
Sure, if I write a `doReallyComplicatedMathmaticFormula()` and it autocompletes super complicated code then that's one thing but I've literally not seen that once (or maybe I just don't write any code that would cause it to inject larger chunks?). Also if it's something really "basic" like the Haversine formula (determine distance between 2 sets of coordinates) then I'm fine with it injecting an implementation of that, is that really copyrightable? There are only so many different variable names/ordering you can do and still be using the Haversine formula.
Almost all the code it's suggested has been in my style (naming, spacing, etc) and referenced variable/property names that are either super generic OR super specific to my codebase (I seriously doubt anyone else has some of these variable names we came up with, if you do then my apologies).
- forgotpwd16 4y ago>but I've literally not seen that once That's exactly that's happened and discussed in the submitted article. For reference the code reproduced (literally) is: https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/dev2/CSparse/Source/cs_transpose.c https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/dev2....