News for hackers. Stuff that matters.
Re:GitHub Copilot by mdellavo on Tuesday June 29, 2021 @11:10AM (#27676934)
do you still go over the generated code line by line and touchup in places where it did not do a good job?
Re:GitHub Copilot by fzaninotto on Tuesday June 29, 2021 @11:13AM (#27676978)
It suggests code line by line, so yes
Re:GitHub Copilot by mdellavo on Tuesday June 29, 2021 @11:20AM (#27677091)
I guess I dont see the point if only 10% of the time it's exactly what you want and the rest of the time you have to go back and touch up the line.

Does it train a programmer for accepting less than ideal code because it was suggested? Similar to how some programmers blindly copy code from StackOverflow without modification.

Seems like there is a potential downside that's being ignored.

Re:GitHub Copilot by staticassertion on Tuesday June 29, 2021 @01:09PM (#27678751)
> Does it train a programmer for accepting less than ideal code because it was suggested? Similar to how some programmers blindly copy code from StackOverflow without modification.

Maybe juniors, but I don't see this being likely for anyone else. I've been using TabNine for ages and it's closer to just a fancy autocomplete than a code assistant. Usually it writes what I would write, and if I don't see what I would write I just write it myself (until either I wrote the whole thing or it suggests the right thing). Of course, barring some variable names or whatever.

I don't have it "write code for me" - that happens in my head. It just does the typing.

Re:GitHub Copilot by corobo on Wednesday June 30, 2021 @08:33AM (#27687681)
> I guess I dont see the point if only 10% of the time it's exactly what you want and the rest of the time you have to go back and touch up the line.

Think of it as tab complete. If it's wrong, don't hit tab.

Re:GitHub Copilot by verst on Tuesday June 29, 2021 @11:38AM (#27677431)
This is not true - and I've been using copilot for many months :)

It suggests entire blocks of code - but not in every context.

Re:GitHub Copilot by fzaninotto on Tuesday June 29, 2021 @11:52AM (#27677662)
My bad, you're right. I remember now that it suggested me entire code blocks from time to time.

Do you know in which "context" it suggests a block?

Re:GitHub Copilot by verst on Tuesday June 29, 2021 @12:47PM (#27678446)
It usually suggests blocks within a function / method in my experience. Here's an example I created just now:

https://gist.github.com/berndverst/1db9bae37f3c809e5c3f56262...