With Copilot’s capabilities, I wanted to challenge myself to build a small application using only Copilot. For this challenge, I wanted to create a simple random quote application that also displays the sentiment of the quote.
To do this, I had a few rules to follow to see how much benefit I could receive from Copilot.
First, I could not search the internet if I encountered a problem, including using Stack Overflow or documentation. This let me see whether it was possible to solely rely on Copilot’s suggestions to create working code.
The second rule was that I could not write any new code myself. I could, however, write comments, variables, names, and function names to trigger Copilot’s suggestions. Similarly, I could also make small edits to the suggested code.
And finally, I could trigger the list of Copilot suggestions and accept one, since this is a built-in feature.
Top comments (2)
Sure, it's doable, to a certain degree, and you probably won't get very far. But it can do sometimes well with suggesting method content as well as integration code for your methods, but honestly it depends on what you mean by "small edits" as sometimes it hits real close and sometimes it just completely misses, or jumbles the order of what operations you want to make, where sometimes the order of operation is actually crucial to making your program work.
It's a really nice tool to help with making small-mediums methods and functions that you can then connect to something larger, and it's pretty good at helping you make repetitive code easily, and also with filling in some well-known algorithms without having to think about it too much. But sometimes it may screw you up completely and you won't even know how to fix it.
Give it a go, let us know how it works out. Expect some failures, make the most of it, have fun with it :)
I totally agree with you ! it helps but you cannot expect it to make something complicated work !