DEV Community

Cover image for I got the Github Copilot access
Zeeshan Haider Shaheen
Zeeshan Haider Shaheen

Posted on

I got the Github Copilot access

Recently I heard about GitHub Copilot and thought it would be amazing. I was right . I applied for the waiting list and got access recently. It is amazing experience so far.

What is GitHub Copilot?

GitHub Copilot is the newest tool developed by GitHub to autocomplete code. It uses OpenAI for this purpose.

Copilot generates smart code suggestions with context, such as docstrings, code comments, function names, or even file names. It works with multiple languages like Python, JavaScript, TypeScript, Ruby and Go as well as dozens of other languages because it’s “trained on billions of lines of public code,” per the Copilot website.

Features

Copilot’s main feature is its autocomplete function. When typing a function description or comments,Copilot completes the whole function. User just have to press tab key to use the complete code.

For Example

Image description

I am using copilot in a project and it is saving my time by giving me valid suggestions.
For example when writing my Action it gives me whole suggestion and the suggestion was 100% right because I was going to write the same code.

Image description

My Point of View

I think GitHub Copilot will change the way we code. It will make things lot easier for developers. It is a good asset for developers.

Latest comments (34)

Collapse
 
adambiggs profile image
adam-biggs

GitHub Copilot certainly has its strengths and weaknesses. Here’s a roundup of key takeaways:

  • Fewer browser searches: Common functional solutions are available after a few words + Tab, and established patterns used in the most used frameworks/libraries are there, too. It’s a great time-saver.

  • Context matters: “Context” is key here. The AI considers factors like the frameworks or libraries in use, the variables in the current file, and related files and scope in order to produce better suggestions. Patterns are also considered in part of the answer as well.

  • It's best for experienced developers: Although AI assistance might look like a good learning tool, it’s not. Code suggestions are just that: suggestions. The developer needs to be able to evaluate these suggestions and choose to accept, skip, or ignore them. In order to use the tool properly, it’s necessary to know the context, logic, and expected output to make a smart (and fast) decision. Otherwise, the suggestion can create errors.

If you would like to learn a bit more about GitHub Copilot, I'd suggest checking out this article written by my colleague, Rafael: scalablepath.com/full-stack/ai-pai...

Collapse
 
mdawooddev profile image
Mohammed Dawood

Yeah I have just got access it's so unique experience coding with the GitHub copilot .... It's really amazing and so smart 🤓 .. I enjoy using it.

Collapse
 
benjaminv profile image
benjaminv

I got it recently too likely they recently rolled out another batch of users on the list. I quite like the hint offered almost instantly while typing. It mostly from myself for reuse my code but for certain commons methods it save me from remembering a lot of attributes. So far so good. If you haven't submitted your interest, better get it done sooner.

Collapse
 
briansanteliz profile image
Brian Santeliz

I have used it in a couple of projects and it has helped me a lot, especially in repetitive tasks such as creating a new endpoint, error handling even in the design of a bootstrap form and the best thing is that it gives you several suggestions and is going to adjust To your code and context, sometimes it has errors but as everything can be improving, definitely to be a beginning is going very well, in a future it would be great that it had a context of the whole project (although that seems to be a bit dark). Greetings, good article!

Collapse
 
fisforfaheem profile image
Faheem Ahmad

I can't get it still

Collapse
 
diballesteros profile image
Diego (Relatable Code)

It's been pretty neat for specific use cases to save a trip to google, for example sometimes i misremember how some CSS selectors work for nth-child and it automatically gives suggestions based on what I ask.

Collapse
 
foxy4096 profile image
Adzy

I also got it access, at first I got pretty scared, but as I used it seems cool, but I have turned it off now

Collapse
 
shibun profile image
Shibu N

Yeah man. GitHub Copilot is good. It saves lot of time. But sometimes suggests wrong code.

Collapse
 
ziterz profile image
Ziady Mubaraq

same here, still trying till got best suggestions

Collapse
 
zeeshanhshaheen profile image
Zeeshan Haider Shaheen

Yeah it still learning

Collapse
 
raysummee profile image
Angshuman Barpujari

Does it support every language? Because some new language doesn’t have much open source github projects to learn from.

Collapse
 
zeeshanhshaheen profile image
Zeeshan Haider Shaheen

As mentioned in the article it support JavaScript, Typescript, Python, Ruby and Go for now.

Collapse
 
henriquecm profile image
Henrique César Madeira

It support php as well, but I think it support a lot more than these languages, because it uses almost everything public on github

Collapse
 
thumbone profile image
Bernd Wechner

You haven't alas made it clear how this works. Github and my IDE are two different things, in fact I simply push code to github. To wit, I am curious how the Github and Copilot in Github Copilot interact and it's main feature of autocompletion I see no context for in my life. What context are you sharing?

Collapse
 
zeeshanhshaheen profile image
Zeeshan Haider Shaheen

For now, I'm just explaining the main feature of Copilot which is giving valid suggestions and code auto-completion.
The detailed Article is coming soon 🙂

Collapse
 
thumbone profile image
Bernd Wechner

But you haven't explained ;-). I have no clue how github and editing relate. Github to me is hosting .... a remote repo.

Thread Thread
 
abodactyl profile image
Abby Redwood

GitHub is just the company developing it. It's probably more accurate to call it Visual Studio Copilot - it's separate from the platform.

Thread Thread
 
thumbone profile image
Bernd Wechner

Thanks heaps Hannah for clarifying. Weird product naming and alas rules a pile of github users out because surprise surprise I'd confidently guess there are at least 3 maybe 10 or 20 github users for every Visual Studio user.

Github after is Microsoft's odd dive into a big FOSS world and FOSS developers are famed methinks for using a whole array of tools as long as they ain't MS, licensed or freemium (hamstrung so the minute you need a dev feature you hit the paywall). VS Code has made huge inroads though being free as in free beer and if copilot works there it'll boost that even more.

Me, nah, don't think I'll be Visual Studioing much. I mean I do use VS Studio on one job I have, but it takes little maintenance and I'm rarely in it, and I did use it for years commercially developing software and do like it to be honest, a rocking good IDE to be frank, but alas, as I dived more and more into github and FOSS over the years never adopted in in that context, in fact intently sought alternatives in the FOSS world and am very content.