← BACK TO BLOG

GitHub CoPilot — My Impressions thus far

GitHub Copilot demo suggesting code across TypeScript, Go, Python and Ruby files

I have been using GitHub CoPilot for last few Weeks and I must say

This AI will boost your productivity upto 200%

Copilot suggesting a JavaScript function inside VS Code

So What is GitHub CoPilot ?

GitHub CoPilot is your AI pair programmer . With GitHub Copilot, get suggestions for whole lines or entire functions right inside your editor. Trained on billions of lines of public code, GitHub Copilot puts the knowledge you need at your fingertips, saving you time and helping you stay focused.

How Does it Help You??

How Did CoPilot Helped Me ?

Whether it was to fetch data from an api or creating an data Model, CoPilot helped me a ton in each and every situation. It also helped me solving DSA based questions(which I found freaking awesome abt it). So yes, this can be your buddy in next of those leetcode and codechef challenges. It does solve your entire question but can help you implementing an algortithm or creating a data strucuture.

Let’s Take an Example

Copilot generating a JavaScript search-and-replace function from a comment

As you can see I wrote a comment on creating a simple function search and replace the given string and how the copilot gave me a solution. It works perfectly and gives you whole block of suggestion in JavaScript.

In C++ , it does not give you whole block of suggestion instead it suggests line by line. The following example here:

Copilot suggesting C++ code line by line for a singly linked list

As you can See , I told CoPilot to create a singly Linked List and you can see what results it . So saves a lot of time and writing the relevant code for you.

For JavaScript Lovers , it will really help you in writing complex Regex functions like Email Validator

Copilot writing a JavaScript regex email validator function


Though It’s Not Perfect!!!

Even though GitHub CoPilot made me go Wow on the code snippets , it provided some bizzare results on some part of the code. Sometimes it extracts and entire code written by someone(which you do not want that).

It produces absolute bizzare code in flutter(dart). It suggests those parameters which does not exists in the following widget

Copilot suggesting invalid parameters for a Flutter Drawer widget in Dart

Here, I tried to implement an App Drawer in a test App. But it suggested those parameters which never existed in the drawer widget.

CoPilot also gets stuck some time repeating same type of code again and again. Like suggesting same type of comment everytime. CoPilot always suggest BruteForce approach of a DSA question first (you can find the optimised approach in the list of suggested snippets of CoPilot by pressing Ctrl(command for mac) + Enter) .

SO YES, IT NEEDS TO LEARN A LOT !!

Final Verdict

Considering its still in Techincal preview , I am satisfied with GitHub CoPilot so far. The code you want from CoPilot , 90% of the time it will give you accurate code results. It needs to expand his horizon towards more languages but right now for the popular languages like Js,cpp,java,go — it’s almost stable , provide correct suggestions and can make your coding life a bit easier.

I am totally in love with GitHub CoPilot 💓 thus far and recommend everyone to signup for TechnicalPreview.

Till then stay tuned ✌️