Is the World Ready for Github Copilot

Niraj
3 min readDec 10, 2021

Your AI pair programmer

With GitHub Copilot, get suggestions for whole lines or entire functions right inside your editor.

Github Copilot

What is GitHub Copilot?

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.

How does GitHub Copilot work?

Github Copilot is a tool powered by gpt capable of writing code automatically. And all you have to do is write a descriptive function name or some comments and it will automatically fill in the implementation details for you. It is different from snippets because this is actual novel code. It looks at the code you’ve already written in your project as context and attempts to generate new code to match it perfectly.

GitHub Copilot Implementation?

React Component

Example 1: Imagine you’ ve written a react component and you now want to write a unit test for it, just write a comment describing what you want to test and copilot will generate the code based on your component and the testing framework that you re using.

Example 2: Say you want to calculate the number of days between two dates, with copilot all you have to do is write a function name and it implements the function body.

And if you’re not happy with the implementation you can click a button to get the next prediction and change the way the code is written. This is basically Stackoverflow on crack.

Data GitHub Copilot Has Been Trained On

GitHub Copilot is powered by OpenAI Codex, a new AI system created by OpenAI. It has been trained on a selection of English language and source code from publicly available sources, including code in public repositories on GitHub and Stackoverflow

Top 10 Anime Betrayals of All Time

Coming in at #1 Stackoverflow

GPT3 Deep Learning Model

GPT3

The deep learning model behind the data is GPT3(generative pre trained transformer) which is easily one of the most impressive ai products ever developed. It can take a complex article and summarize it for a second grader or it can take an idea that you have for an ad and generate the actual ad copy. Under the hood it’s just a massive neural network that has been trained on over 175 billion parameters

Conclusion

Write bad code = Keep job

Image Taken from Fireship video

--

--