r/github • • Jul 19 '21

After getting invited to Github Copilot

Post image
165 Upvotes

15 comments sorted by

3

u/Ashtar_Squirrel Jul 21 '21

It’s when it started writing the terraform code and gitlab-ci files that my co-workers started to panic. They were, yeah dev is anyway going to go away, but it can’t do ops… short sighted human water and meat bags ;)

So it can write your code, your ci, your infrastructure…

1

u/wrtbwtrfasdf Jul 21 '21

Interesting that it would know GitLab-ci, I would've thought they'd only have trained it on Github repos. Hmm... wonder if it can set up my Kubernetes cluster for me.

1

u/Ashtar_Squirrel Jul 22 '21

I found it works best when it has some context in the file. Extending existing terraform code file by adding a comment saying “#create an s3 bucket with encryption enabled” yielded a mostly references to an s3 existing bucket with a couple of correct resource declarations. You can see it doesn’t “understand” that resource is a creation and is just parroting that style of declarations. But still impressive.

2

u/GreekCSharpDeveloper Jul 20 '21

it evrn works with rust

2

u/wrtbwtrfasdf Jul 20 '21

With rust's type system I imagine it will be able to do incredible things once it's been trained enough on it.

2

u/Hot_Force_971 Jul 21 '21

I want to try it but it's only for VScode I mean, come on why not Atom?

1

u/wrtbwtrfasdf Jul 21 '21 edited Jul 21 '21

I don't want to be elitist, but development/support for Atom is pretty dead in 2021 and it lacks in comparison to similar editing tools.

Sublime, Atom, Notepad++ were valid choices in the early 2000's, but using them now is like choosing to have a flip phone instead of a smartphone. Maybe it's all you need, but your experience could be far better.

Depending on use-case I'd qualify valid editors as:

  • vscode

  • Visual Studio

  • Any Jetbrains IDE

  • Any Eclipse IDE

  • Vim

  • Emacs

  • Xcode

  • Jupyter Notebook

  • Some cloud editor, AWS cloud9, codesandbox, jsfiddle etc.

6

u/jon4hz Jul 20 '21

Imo it's working excellent with golang

1

u/armpit_lover69 Jun 02 '22

Hi u/wrtbwtrfasdf. I was just wondering if I can use this meme for my presentation? I will credit you in the slides.

1

u/wrtbwtrfasdf Jul 04 '22

Month late but I hope you went ahead and used it.

1

u/armpit_lover69 Jul 05 '22

Thanks. I did actually used it and credited you for it. Its another thing the presentation was shit lol.

2

u/EliTheCoder Jul 20 '21

yeah but where's the return statement

1

u/NursingGrimTown Jul 20 '21

Its fucking useless

0

u/[deleted] Jul 19 '21

[deleted]

6

u/wrtbwtrfasdf Jul 19 '21

It's surprisingly good at writing bash scripts from comments. I wish it didn't eat my closing squiggly braces in JS though

9

u/mirandanielcz Jul 19 '21

I wish it knew python syntax.

It keeps adding ] EVERYWHERE