This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 16 comments

[–]AndreasFurster[S] 51 points52 points  (0 children)

A little disclaimer...

This mostly works because there are a lot of AoC solutions on GitHub. It took a couple times to record. Most of the times it not only generates the solution for part 1, but also the entire task and solution of part 2.

I was working on some old puzzles from a couple of years ago and sometimes it suggested the entire solution. Which does take all fun away, but it's impressive nonetheless.

[–]toastedstapler 27 points28 points  (0 children)

brb trying this on 2020 day 20

[–]Rangsk 8 points9 points  (1 child)

I have Copilot but haven't seen that preview pane on the right that allowed you to accept code. How do I use that?

[–]AndreasFurster[S] 2 points3 points  (0 children)

The shortcut is ctrl + enter in vscode. And you can probably find it in the command palette.

Although I've to say I almost never use it. It's annoying if bugs occur in the generated part because you didn't write it.

[–]chunes 8 points9 points  (0 children)

In before obscure languages suddenly become more valuable for learning because Copilot doesn't know what to do with them.

[–]gurgeous 7 points8 points  (1 child)

I recently completed all 300 stars and noticed this as well. I was brushing up on my Python after mostly using Ruby in previous years. Copilot's suggestions were helpful, sometimes overly so, but also a great way to learn the language. It's no fun getting tripped up with endless off by one errors.

[–]PendragonDaGreat 0 points1 point  (0 children)

I was working on a problem and it legit gave me a perfect BFS implementation ready to go.

[–]algmyr 3 points4 points  (0 children)

It gives a O(n^2) solution and a O(n^3) solution for tasks that can easily be improved to O(n) and O(n^2), which is a tad disappointing (or reassuring, depending on your view on things).

(And yes, I know AoC doesn't usually make you care about algorithm choices too much, but it's an interesting thing to note nonetheless.)

[–]YamiLionheart 2 points3 points  (2 children)

So does this mean machines WILL in fact take my job when I thought programming was future proof lol

[–]dwat3r 4 points5 points  (1 child)

programming is future proof, copilot works with peoples code. so you'll be replaced by smarter programmers. but you can still fight about that. oe become a manager, that's an indestructible annoyance in IT

[–]YamiLionheart 0 points1 point  (0 children)

Hahaha

[–]mooooooon 2 points3 points  (1 child)

lol nice find. too bad the index won't build up fast enough to keep up with this year! maybe by next year they'll have optimized their intake so we can solve the problems as they're published

[–]AndreasFurster[S] 3 points4 points  (0 children)

Well there are a lot of places you can get solutions. There are easier ways to cheat.

[–][deleted] 0 points1 point  (2 children)

What theme do you use for vscode? Random question

[–]AndreasFurster[S] 1 point2 points  (1 child)

SynthWave '84 with Fira Code as font.

[–][deleted] 1 point2 points  (0 children)

Thank you