Live data from Hacker News

I figured out how to get GitHub Copilot to run in the terminal

github.com

51–60 of 105 posts

Re: I figured out how to get GitHub Copilot to run in the terminal

#51
post #49
post #37

Earlier quoted context omitted.

Could someone explain how? I don't grok the command. My best guess is this relates to hexadecimal.

The calculation maps a random number R in range 0..255 to numbers 1..10 via R % 10 + 1 The problem is that 10 does not evenly divide 256, hence for large R, the mapping will be incomplete. Specifically, 250 => 1 251 => 2 252 => 3 253 => 4 254 => 5 255 => 6 with no more random numbers available to yield results 7, 8, 9 and 10.

Thanks for the explanation!

Re: I figured out how to get GitHub Copilot to run in the terminal

#52
post #43
post #37

Earlier quoted context omitted.

Could someone explain how? I don't grok the command. My best guess is this relates to hexadecimal.

`od -N 1 -An -i` reads one byte from stdin (urandom in this case) and prints it as a decimal string (with value between 0 and 255). The awk command receives that number and prints it back out modulo 10.

Thanks for the explanation!

Re: I figured out how to get GitHub Copilot to run in the terminal

#53
post #20

Speaking of copilot, when is GitHub going to support billing for it at the organization level? Right now I would have to do a monthly reimbursement request which is a pain.

Help me understand something. I understand that the company should pay for Copilot in principle. However, is paying $120 per year that much when it helps you in your at least mid-five-figures job? I would ask for the reimbursement if it was annual, but filling out a form to ask for $10 back every month seems a bit over the top. Maybe I'm a spendthrift? Am I missing something here? Would you say I am being irresponsib…

First of all. If I was the legal team of any company I'd tell developers to stay away from copilot, since the legal status is still undecided and microsoft has a disclaimer that any legal issues fall on the users (which is probably illegal but you'd have to sue microsoft to get it overturned).

Second… It's a work tool just like any other work tool, why should I buy it out of pocket? In the end it's to the advantage of the company if I'm faster at my job.

Now I'm thinking, precisely because it's not paid by the company but by the single user, in case there is legal action, the company might shift the blame on the developer. If they reimbursed they would have no way of claiming they weren't aware.

Re: I figured out how to get GitHub Copilot to run in the terminal

#54

Speaking of copilot, when is GitHub going to support billing for it at the organization level? Right now I would have to do a monthly reimbursement request which is a pain.

I reckon there's a reason why it's not available yet: legal uncertainty about the training data and generated code in a commercial context. Right now it's only individual developers, placing the burden on them and preventing any major repercussions for Github. This changes when (large) companies start using it, and when GitHub gives potentially copyrighed code to companies. Personally I only use it for personal/OS pr…

Are there any companies forbidding developers to use it?

If that was my role I'd totally forbid it, precisely for the reasons you indicated.

If a developer is paying on his own for it to work, who would have the legal responsibility in the end? The developer personally? Another good reason to stay away from it.

Re: I figured out how to get GitHub Copilot to run in the terminal

#55
post #44

It’s generally claimed that reading other people’s code is harder than writing your own. I mean, everybody loves writing code on a greenfield project but hates maintenance of legacy code, right? So, why do people like these code generators? The only explanation I can see is that people use them and then don’t read the code . Which would be horrifying. (I stay away for obvious copyright reasons.)

> It’s generally claimed that reading other people’s code is harder than writing your own. So, why do people like these code generators?

Harder doesn't mean quicker :)

Re: I figured out how to get GitHub Copilot to run in the terminal

#56
post #54

Earlier quoted context omitted.

I reckon there's a reason why it's not available yet: legal uncertainty about the training data and generated code in a commercial context. Right now it's only individual developers, placing the burden on them and preventing any major repercussions for Github. This changes when (large) companies start using it, and when GitHub gives potentially copyrighed code to companies. Personally I only use it for personal/OS pr…

Are there any companies forbidding developers to use it? If that was my role I'd totally forbid it, precisely for the reasons you indicated. If a developer is paying on his own for it to work, who would have the legal responsibility in the end? The developer personally? Another good reason to stay away from it.

Our company is forbidding it too, for exactly the legal reasons parent posted

Re: I figured out how to get GitHub Copilot to run in the terminal

#57
post #44

It’s generally claimed that reading other people’s code is harder than writing your own. I mean, everybody loves writing code on a greenfield project but hates maintenance of legacy code, right? So, why do people like these code generators? The only explanation I can see is that people use them and then don’t read the code . Which would be horrifying. (I stay away for obvious copyright reasons.)

It is absolutely amazing for writing boilerplate code that is also context aware. It saves me hours of typing. It's hard to explain if you've never tried it because you're ideologically opposed to it, but stop being close minded and try it out, I promise it's a great tool to assist your programming.

Good codebases don't need boilerplate to do basic stuff: in this sense, copilot is a patch over the real problem, which can be solved with better frameworks and more code reuse.

I tried copilot during the beta, and apart from the obvious legal licensing issues, I simply could not find a valid usecase for any of the codebases I usually work with.

At my day job, I spend more time thinking of better ways to do X, rather than writing boilerplate code :)

Re: I figured out how to get GitHub Copilot to run in the terminal

#58

Earlier quoted context omitted.

It is absolutely amazing for writing boilerplate code that is also context aware. It saves me hours of typing. It's hard to explain if you've never tried it because you're ideologically opposed to it, but stop being close minded and try it out, I promise it's a great tool to assist your programming.

Good codebases don't need boilerplate to do basic stuff: in this sense, copilot is a patch over the real problem, which can be solved with better frameworks and more code reuse. I tried copilot during the beta, and apart from the obvious legal licensing issues, I simply could not find a valid usecase for any of the codebases I usually work with. At my day job, I spend more time thinking of better ways to do X, rather…

What are some examples of code without boilerplate?

Re: I figured out how to get GitHub Copilot to run in the terminal

#59
post #44

It’s generally claimed that reading other people’s code is harder than writing your own. I mean, everybody loves writing code on a greenfield project but hates maintenance of legacy code, right? So, why do people like these code generators? The only explanation I can see is that people use them and then don’t read the code . Which would be horrifying. (I stay away for obvious copyright reasons.)

> reading other people’s code is harder than writing your own

This is the first time I've ever seen this lol. I'd have had a hell of a time learning how to code if that were true!

Re: I figured out how to get GitHub Copilot to run in the terminal

#60
post #44

It’s generally claimed that reading other people’s code is harder than writing your own. I mean, everybody loves writing code on a greenfield project but hates maintenance of legacy code, right? So, why do people like these code generators? The only explanation I can see is that people use them and then don’t read the code . Which would be horrifying. (I stay away for obvious copyright reasons.)

It is absolutely amazing for writing boilerplate code that is also context aware. It saves me hours of typing. It's hard to explain if you've never tried it because you're ideologically opposed to it, but stop being close minded and try it out, I promise it's a great tool to assist your programming.

No post body was provided.
Post reply on HN