DEV Community

Cover image for My Experience with GitHub copilot
Srini Raju
Srini Raju

Posted on

1

My Experience with GitHub copilot

Last week, I got my access to GitHub copilot. I was slightly skeptical about how much will this be useful before I started to use it.

Today I had installed my vs-code extension and logged into the account. Then started working on my personal project. Spent most of my time on refactoring my code today. There were suggestions which I felt not great when I was doing the code refactoring.

Then I had to write a simple utility to get Socket URL and Graphql URL based on the hostname and protocol. If the host is localhost we have to point to a local backend server which is running on different port. This is a very common use-case. When I started to code this utility I was amazed by the amount of code that was generated by copilot. The attached image has code is what we(me and copilot) have come up.

Out of the the 24 lines of code in the file, 11 lines of code was auto generated by copilot. This is close to 50% of the code. I crossed the line numbers which were generated by copilot.

Though at times the code generation is slightly slower, But once the tool matures it would be of great help to programmers. I feel that this will help developers with their productivity and improve the quality of code.

Let us see how these AI for coding will shape the future of application development.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay