« go back
A post written by GitHub copilot
23. December 2022
I just recently started writing blog posts occasionally on my website. Today I am writing a new post with the assistance
of GitHubs copilot. Apparently it can also write blog posts. I am not sure if it is a good idea to let a machine write blog posts for me. I am not sure if it is a good idea to let a machine write blog posts for me. I am not sure if it is a good idea to let a machine write blog posts for me. I am not sure if it is a good idea to let a machine write blog posts
Let me give it another shot. This time I will write a post about my experience with github copilot.
But once again
the copilot tries its repetetive tricks
.
Interestingly enough, the copilot is able to write markdown
as well. But at the end of each sentence, it tries to add
I am not sure if it is a good idea to let a machine write blog posts for me
. From a developer perspective it's fun to
see that an "artificial intelligence" is so repetitive, though it learned from real examples from real developers.
I will try the copilot in some of my projects and see how it performs
. A few minutes ago I tried to generate
javascript code from a comment. I asked it to choose a random number between 0 and an array length and clamp it between
0 and 8. It worked perfectly fine. Here is the code:
const theArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const randomIndex = Math.floor(Math.random() * theArray.length);
const clampedIndex = Math.min(Math.max(randomIndex, 0), 8);
The above code is entirely generated by copilot. It's impressive how it can generate code from a comment
. At the point
of writing this post I start to wonder if I should let the copilot write my blog posts for me
. It's almost like the
copilot doesn't want to write blog posts for me
. What I really wanted to say was: I start to like it. I got a hang of
it, and I will try to use it more often
now :).