DEV Community

loading...
Cover image for Have you tried GitHub Copilot?

Have you tried GitHub Copilot?

Madza
Discussions. 💬 Tools. 🛠 Resources. 📚 All things productivity. 🎯🚀💯
・1 min read

GitHub Copilot is an AI tool developed by GitHub and OpenAI to assist users of VS Code by autocompleting code.

It was first announced on 29 June 2021. It got quite a buzz on the launch.

Three months has since passed and I was wondering:

  • Have you tried it and what are your impressions/thoughts?
  • Do you see it as a must-have tool in your stack?

Discussion (45)

Collapse
thomasbnt profile image
Thomas Bnt •

GitHub Copilot is nice but occasionally he would like to write sh*t code with no sense

I even got the same code one time line after line. He probably didn't know what to give me, so he thought "well, he validated the line above me, I'll give it to him 😆

Collapse
karandpr profile image
Karan Gandhi •

Thats sound like me in my Junior Dev days ....

Collapse
madza profile image
Madza Author • • Edited

Copilot is technically a Junior Dev too (3 month experience) 😉
I wonder how he applies to all those job listings asking for 5-10 year experience 😄😄

Thread Thread
karandpr profile image
Karan Gandhi •

They hired him anyway and asked him to make a revolutionary e commerce website based powered by cutting edge Wordpress + woocommerce with industry leading Bootstrap UI.

He gets paid in exposure.

Thread Thread
madza profile image
Madza Author •

He also prolly likes to live dangerously outside the office ⚡⚡😎

Thread Thread
karandpr profile image
Karan Gandhi •

He has outsourced his work to another github copilot already.

Collapse
madza profile image
Madza Author •

Haha, this made my day 😄

Collapse
thomasbnt profile image
Thomas Bnt •

😂😂

Collapse
jayjeckel profile image
Jay Jeckel •

If and until the copyright issues around the generated code have been worked out, I would strongly advice against using these tools to generate code for open source projects.

For those that are unaware, the model used to generate code was trained on publicly available open source projects. Many (and I'd guess most) of these projects carry licenses that require attribution or even the whole license to be included when their code is reused. Copilot has been shown to reproduce such code without the required legal additions. Therefore any use of Copilot generated code is opening your project up to the possible risk of copyright infringement and, worse, the insult that is reusing open source code without giving the original author the credit they are due.

It's an interesting experiment, but as a tool for work it isn't yet fit for purpose and could actually harm the user, their project, and the open source community as a whole.

Collapse
madza profile image
Madza Author •

Thank you for sharing this 😉

Collapse
ben profile image
Ben Halpern •

I wonder how far along it will be once I first get around to playing with it.

I do sometimes feel like software development, in general, is stuck at a local maxima in terms of endless configuration, fragile testing tools and so much manual work— which we could do well to break out of. This certainly seems like it could be a hint at what might be next.

Collapse
madza profile image
Madza Author •

Great and thoughtful response as always! 👍😉
Thanks for the share! 🙏❤

Collapse
mastermind profile image
MasterMind •

copilot is brilliant and all but unfortunately it uses up a lot of memory along with VS Code which makes me use it very very less often

or maybe my PC sucks.¯_(ツ)_/¯

Collapse
madza profile image
Madza Author •

but unfortunately it uses up a lot of memory

Did not know this, thanks for sharing 😉
Could you share you main PC specs? 👀

Collapse
mastermind profile image
MasterMind •

it's a 4 GB RAM and an Intel i3 processor. not too proud of it 😁

Thread Thread
madza profile image
Madza Author •

How does it handle Chrome? I remember I had a low spec PC back in time, and I used Firefox as it could handle multiple tabs better 😉

Thread Thread
mastermind profile image
MasterMind •

Chrome goes well most of the time, but yeah it takes about half a minute to start. Also, I prefer using Opera GX over it 👀

Thread Thread
madza profile image
Madza Author •

I used Opera for sume time in the past too, then FF and now Chrome 😉
Brave looks promising and lots of devs use it 😉

Collapse
darkwiiplayer profile image
DarkWiiPlayer •

I'm a vim user, so I couldn't try it even if I wanted. But also, I don't see the need for such a tool. From what I've seen, it seems like a tool for people who write repetitive code most of the time, which is something I try to avoid altogether.

Collapse
javier123454321 profile image
Javier Gonzalez •

Boilerplate is real. It'll do it for you, also inferring variable names, etc. I was pleasantly surprised.

Collapse
darkwiiplayer profile image
DarkWiiPlayer •

I can't think of anything I've written lately where I would expect a semi-smart AI like gh autopilot to do me any good, but of course I can't say for sure until I've tried it some day. But generally speaking, I just don't write that much boilerplate in general, other than your typical module imports, which are already covered by editors with a snippet feature.

Collapse
gochev profile image
Nayden Gochev •

yeah its good but doesnt work with most languages.
TabNine is bad but works with all languages.. so not sure.

Collapse
jonrandy profile image
Jon Randy • • Edited

TabNine is superb - almost feels like it's psychic sometimes. It's the main reason I haven't bothered trying CoPilot

Collapse
gochev profile image
Nayden Gochev •

not sure which language you are using but in Java TabNine is showing me 99% of the times things that doesnt exists, local variables not defined, methods not found in this class or any of the super classes and etc.

it is a total randomness of completion ... so I lose more time doing crap.. Codata was amazing.. but TabNine bought it and killed it. I dont know why EU doesnt stoped this MONOPOL ways of doing business.

Thread Thread
jonrandy profile image
Jon Randy •

Interesting. I'm using it with mainly JS and Python

Collapse
madza profile image
Madza Author •

So here goes the idea for devs:
Write a tool that holds the best of both worlds 😄😄⚡

Collapse
kayis profile image
K •

It's okay.

Sometimes it would write a bunch of crap, other times I have the feeling it really took my code into consideration and helps to write boilerplate.

It's nice to get a big decision tree with one click and just having to clean up the details later.

But that's it. It doesn't have any good ideas on its own, haha.

Collapse
madza profile image
Madza Author •

It doesn't have any good ideas on its own

Maybe that's a good thing, as the other option seems kinda scary 🤖🕹

Collapse
kayis profile image
K •

But now I have to have ideas!!! :D

Thread Thread
madza profile image
Madza Author •

Just ask him politely 😄😄

Collapse
geraalcantara profile image
Gerardo Alcantara •

Well I'm my personal case I'm not a senior dev and a master of any source, so copilot help me to write faster and with nice patterns even on html and like everyone say some times it resolve in none sense code

Collapse
madza profile image
Madza Author •

Thanks for sharing 🙏❤

Collapse
abh1navv profile image
Abhinav Pandey •

It's fun to work with.

It's not a must have and it's not perfect by any means - a smart human is still required for it to be fruitful.

I've been using it for 2 months. Definitely helps speed things up.

Collapse
madza profile image
Madza Author • • Edited

helps speed things up

Thanks for the insight 😉👍

Collapse
javier123454321 profile image
Javier Gonzalez •

It is surprisingly good. It infers boilerplate regarding some functions. It needs A LOT of wrangling though.

Collapse
madza profile image
Madza Author •

Thanks for sharing 😉👍

Collapse
rejaur2287 profile image
rejaur2287 •

Long it takes in wiatlist...

Collapse
link2twenty profile image
Andrew Bone •

I quite like it for writing comments that describe code I've written rather than having it complete whole functions. I also sometimes use it as line completion.

Collapse
madza profile image
Madza Author •

Awesome! 😉Thanks for the share 🙏❤

Collapse
aghost7 profile image
Jonathan Boudreau •

I have ethical concerns over it so I have not.

Collapse
louislow profile image
Louis Low •

Sound promising. Can't wait to try on it.

Collapse
prathameshkdukare profile image
Prathamesh Dukare •

Its on my waitlist

Collapse
siddharthshyniben profile image
Siddharth •

It's really helpful when I don't know exactly how to solve a problem. And also for boilerplate. My only con is that no vim support. If there were, I would happily use it.

Collapse
prabhukadode profile image
Prabhu •

Yes tried it and what I noticed is that it has pros and cons

Collapse
themrdev profile image
MrDev •

I have never tried github copilot