My 3-days experience using Github Copilot: surprisingly smart!

Github Copilot is an editor extension launched by Github which makes code suggestions while you are programming.
Microsoft came up with this disruptive product as a result of their association with OpenAI (and the state of the art on generative text models) and the acquisition of Github (data for training!).
You only have to join a waitlist. Wait for their invitation to try it. Install it in an editor. I personally installed it on VSCode (don’t forget to associate your github account and agree with the terms and conditions).
Far away from being a post full of text and explanation (you have many other posts on Google for it) I want to share with you my personal experience after using Copilot for just 3 days.
First experience

Working on real project
Context: I’m programming ESP32 on an Arduino environment to upload some sensor data to a cloud. The device is configured by a local website accessible for a self-provided WiFi network (provisioning mode) and has a physical button to switch to “operative mode” (the self-provided WiFi network disappears and connects to the configured WiFi). Notice is quite “niche” project so I was not expecting a good accuracy with the suggestions.
Detecting patterns of code
Understanding algorithmic logic
Proposing alternative way of doing something
Understanding the purpose and the context
I personally think that it’s better to put the debug message where the function was call (because in that way you can call the function in another place and the comment will still make sense). But one of the big pitfalls of Copilot is (I say next) that it only proposes changes after where you have the cursor.
Personal opinion
I think that as challenging as the teach-skills necessary for developing AI products is the product design.
Copilot seems amazing , capturing the semantic of what we are trying to accomplish. But my humble opinion to make a better product is: coding is not always about adding lines of code. Think about how much time do you spend modifying copy-pasted code?
Proposal #1: It would be awesome if it suggested you make modifications on the code you already have. (maybe selecting the block of code that must suffer modifications).
Also there are some jobs that are not critical but necessary. The copilot does it very well: commenting on the code and suggesting logging messages.
Proposal #2: A shortcut that you press and start suggesting you comments/logging all around the codebase. Think about it: I’m sure I’m not the only one that leaves the comments/logging for the very end and this feature seems straightforward with the already existing functionality and very time saving probably.
About me

If you liked this post / my style follow me.
I will try to keep on posting regularly about SE, Web, ML and DApps always with an objective in mind:
- keep it short
- being meaningful
- explain with examples
My 3-days experience using Github Copilot: surprisingly smart! was originally published in Bootcamp on Medium, where people are continuing the conversation by highlighting and responding to this story.