55
GitHub Copilot - Everything you need to know
Let's talk about a very exciting product that was recently launched by GitHub, which is called GitHub Copilot.
GitHub Copilot is your new AI Pair programmer, powered by OpenAI. It helps you to write utilify functions, tests, and explore new API(s) without having to lookup for answers on internet. It generates or autocomplete code for you.
GitHub Copilot is your new AI Pair programmer, powered by OpenAI. It helps you to write utilify functions, tests, and explore new API(s) without having to lookup for answers on internet. It generates or autocomplete code for you.

It's currently not available publicly, so if you want to use it, you've to join the waiting list by visiting GitHub Copilot and head over to Sign up page.

Let's start with some simple and basic utilify functions.
These were some simple utility functions, maybe we should give a try to use Node.js default modules, such as
Depending on the what function name you use, Copilot gives different suggestions.
fs
.Depending on the what function name you use, Copilot gives different suggestions.
Okay, enough of simple examples, let's quickly build a simple CLI based application that fetch user GitHub details (
api.github.com/users...
)Now let's start using copilot. The very first thing is to extract username from arguments as the user will be passing it dynamically
./cli.js khattakdev
Here
khattakdev
is a GitHub HandleCopilot is an awesome tool that works for creating utility functions, writing test cases, and exploring new API(s). It also works for comments and it gives you multiple suggestions.
55