Github Copilot Aims to help Developers write better code

Github Copilot Aims to help Developers write better code

This is an article describing Github Copilot , new AI pair Programmer Tool that's helping you write better code.

What is Github Copilot ?

No alt text provided for this image


Github Copilot is an AI pair programmer that helps you write code faster and with less work . Github Copilot draws context from comments and code , and suggests individual lines and whole functions instantly. Github Copilot is powered by OpenAI codex , a new AI system created by openAI . The github Copilot technical preview as a visual studio code extension.

How will Github Copilot get better over time ?

No alt text provided for this image


Github Copilot doesn't actually test the code it suggests , so the code may not be even compile or run . Github Copilot can only hold a very limited context , so even single source files longer than a few hundred lines are clipped and only the immediately preceding context is used . And Github Copilot may suggest old & deprecated uses of libraries and languages. You can use the code anywhere, but you do so at you own risk.

How does Github Copilot work ?

OpenAI Codex was trained on publicly available source code and natural language, so it understands both programming and human languages. The github Copilot editor extension sends your comments and code to the Github Copilot service, which then uses OpenAI Codex to synthesize and suggest individual lines and whole functions.

What is the quality of the generated code?

Even though Copilot is correct almost half the time, the creators say its output should be monitored:


GitHub Copilot tries to understand your intent and generate the best code it can, but the code it suggests may not always work, or even make sense.


The quality of the suggestions also depends on the existing code. Copilot can only use the current file as a context. It cannot test its own code meaning it may not even run or compile.

=======================================================


Thanks for reading and subscribing! , I'd love to hear your feedback and future topics you'd like me to feature




To view or add a comment, sign in

More articles by VISHAL DHANURE

Others also viewed

Explore content categories