I have been spending some quality time with GitHub Copilot and so far it has made me fall out of my chair a couple of times. It truly is amazing. Thought of writing this post to share some experience, so whoever hasn't tried it so far, can get amazed like me.
GitHub Copilot is a Pair Programmer, which does way more than auto-completion and it's completely powered with AI (Artificial Intelligence). I have been using Visual Studio for a long time, and probably since the day I started, we had IntelliSense which does the basic auto-completion. Then a couple of years back, Microsoft announced IntelliCode which is an AI-Assisted tool to suggest the next piece of code based on where we are, and it was great.
Now GitHub Copilot places things on a whole different level. It basically can write code based on the comments in Natural Language, can you believe that? So whether it's a comment, docstring, function name, or the code itself, GitHub Copilot uses those to synthesize code. Currently, it's still in its Technical Preview stage, and has first-class support for the following programming languages.
- Python
- JavaScript
- TypeScript
- Ruby
- Java
- Go
Same time it understands dozens of other languages and can help you find your way around almost anything. I have tried with C#, T-SQL and it's working super nicely.
As of today, GitHub Copilot is available as an extension for
// Create an Express application var express = require('express'); // Expose an endpoint var app = express(); app.get('/', function (req, res) { res.send('Hello World!'); }); // Expose another endpoint app.get('/api', function (req, res) { // Send a response of current time res.send(new Date()); }); // Run express application app.listen(3000, function () { console.log('Listening on port ' + 3000); });
How GitHub Copilot Works |
Happy Coding.
Regards,
Jaliya
No comments:
Post a Comment