News for hackers. Stuff that matters.
Re:I tested Copilot in an existing open-source codebase with... by Tcc1 on Sunday August 15, 2021 @07:51PM (#28193644)
He probably spent more time figuring out if the suggestions are usable than he would have needed to just implement those manually.
Re:I tested Copilot in an existing open-source codebase with... by byteface on Monday August 16, 2021 @11:39AM (#28199349)
I guess if he wrote tests first it would have said. no method called x in util. TDD helps take a lot of thinking out of problems.
Re:I tested Copilot in an existing open-source codebase with... by psvj on Sunday August 15, 2021 @07:35PM (#28193562)
it would be interesting if copilot could generate the code based on your unit tests
Re:I tested Copilot in an existing open-source codebase with... by postalrat on Sunday August 15, 2021 @10:32PM (#28194437)
Would that be more desirable than building your tests from your application?

Seems to me that once you can go either way then you just proved the other redundant.

Re:I tested Copilot in an existing open-source codebase with... by h0l0cube on Monday August 16, 2021 @05:02AM (#28196194)
The central thesis of this diatribe is that in order to have a 'complete' unit^ test, you need something at least as complicated as the original code:

https://rbcs-us.com/documents/Why-Most-Unit-Testing-is-Waste...

^ where the 'unit' is basically a function. i.e., to test a function fully, write a test as complicated as the function

Re:I tested Copilot in an existing open-source codebase with... by AYBABTME on Sunday August 15, 2021 @03:48PM (#28191899)
Is there a TL;DR?
Re:I tested Copilot in an existing open-source codebase with... by byteface on Sunday August 15, 2021 @04:32PM (#28192263)
He seems to know the codebase and works out the problem for about 30 mins sometimes fastfowarded. Then at about 28 mins copilot smashes the answer instantly when he types a method name at the bottom of a utils file. he doesn't like it though as he seems to know the api really well and wants the util to use his api instead. so deletes the copilot answer and types out a different answer using the api which he knows.

then creats a few unit tests.

This was an interesting watch and useful to see other peoples setups.

Re:I tested Copilot in an existing open-source codebase with... by hdjjhhvvhga on Sunday August 15, 2021 @03:55PM (#28191955)
It's mediocre. Sometimes it's plain wrong, sometimes right but not exact and so on.
Re:I tested Copilot in an existing open-source codebase with... by yourapostasy on Sunday August 15, 2021 @09:17PM (#28194037)
Was Copilot's value proposition that it gets better over time as more developers use it over a longer period?
Re:I tested Copilot in an existing open-source codebase with... by hdjjhhvvhga on Monday August 16, 2021 @06:42AM (#28196673)
But the value for who? Last time I checked the consensus was that using it in any project that is not for private use can get you in legal trouble. So for me it's completely useless, even if technically it could be improved with time (which may or may not happen).
Re:I tested Copilot in an existing open-source codebase with... by yourapostasy on Monday August 16, 2021 @06:35PM (#28203814)
> But the value for who?

Presumably value "unlocked" for GitHub investors, by leveraging the ML model that drives some product based upon Copilot like a next-gen IDE. I agree it's not a good risk to assume for the users of Copilot.