this post was submitted on 01 Oct 2023
433 points (97.8% liked)

Programmer Humor

32000 readers
1744 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Maybe it is

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 18 points 11 months ago (4 children)

It is designed for other purposes than GPT models. Next time try to use copilot as autocompletion, not to generate new code. It's excellent in that.

[–] [email protected] 5 points 11 months ago (1 children)

That's how I thought it was supposed to be used. It's "copilot" not "autopilot". I don't need nor want it to write whole functions for me.

[–] [email protected] 1 points 11 months ago

Company ran a trial for it, and it worked really well for generating boilerplate code following our existing system design. Sometimes it makes mistakes, but during the trial it was a rare occurence

The company is giving it to us all for free next year, hope it doesn't negatively affect hiring though...

[–] [email protected] 4 points 11 months ago (2 children)

That's how I was using it; I ended up spending as much time as I was saving going around and cleaning up after it and/or second guessing myself. Basically, because it only operates in the context of the file you're working in, it will suggest garbage half the time if you have to work with resources from other files.

[–] [email protected] 7 points 11 months ago* (last edited 11 months ago)

From the docs:

GitHub Copilot analyzes the context in the file you are editing, as well as related files

Tho, I don't know if it allways been that way, maybe they added bigger context later

[–] [email protected] 2 points 11 months ago

If you have those other files open, it also picks those up. And lately it seems to follow imports too, I feel like