this post was submitted on 01 Oct 2023
574 points (97.8% liked)

Programmer Humor

32070 readers
681 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Maybe it is

all 27 comments
sorted by: hot top controversial new old
[–] otter@lemmy.ca 70 points 11 months ago* (last edited 11 months ago) (1 children)

Isn't that basically how it works?

Just add an additional group of monkeys that aggressively hires and fires the others based on performance

Tada, machine learning

[–] kubijoe@programming.dev 10 points 11 months ago

It was the best of times, it was the blurst of times!

[–] ryannathans@aussie.zone 50 points 11 months ago* (last edited 11 months ago) (3 children)

asks for password hashing

gets code that looks like password hashing, named like password hashing, but, without any of the hashing

[–] Xanvial@lemmy.one 21 points 11 months ago

But it has better performance

[–] blackluster117@possumpat.io 14 points 11 months ago
[–] dan@upvote.au 3 points 11 months ago

but, without any of the hashing

Or it's something like unsalted MD4.

[–] devious@lemmy.world 20 points 11 months ago (1 children)

It generates the blurst of code!

[–] charliespider@lemmy.world 13 points 11 months ago (1 children)

I've been using copilot and find it's suggestions are perfectly cromulent.

[–] killeronthecorner@lemmy.world 6 points 11 months ago

I turn to copilot whenever I need to embiggen my code

[–] conditional_soup@lemm.ee 14 points 11 months ago (3 children)

Tbh, copilot was probably the worst AI coding experience I've had. It actually made me less productive and made me question my competency as a programmer at the same time. Straight up did not have a good time. Use Cody or GPT-4 instead.

[–] starman@programming.dev 24 points 11 months ago (4 children)

It is designed for other purposes than GPT models. Next time try to use copilot as autocompletion, not to generate new code. It's excellent in that.

[–] FMT99@lemmy.world 10 points 11 months ago (1 children)

That's how I thought it was supposed to be used. It's "copilot" not "autopilot". I don't need nor want it to write whole functions for me.

[–] lemann@lemmy.one 2 points 11 months ago (1 children)

Company ran a trial for it, and it worked really well for generating boilerplate code following our existing system design. Sometimes it makes mistakes, but during the trial it was a rare occurence

The company is giving it to us all for free next year, hope it doesn't negatively affect hiring though...

[–] MajorHavoc@lemmy.world 3 points 11 months ago

The company is giving it to us all for free next year, hope it doesn't negatively affect hiring though...

Should be fine. No way they'll assume that the new technology is magic and over promise, under budget, and then start a company death spiral, before cashing out their stock options and doing the same somewhere else. I'm sure glad we don't see that all the time in tech. /s

[–] conditional_soup@lemm.ee 4 points 11 months ago (2 children)

That's how I was using it; I ended up spending as much time as I was saving going around and cleaning up after it and/or second guessing myself. Basically, because it only operates in the context of the file you're working in, it will suggest garbage half the time if you have to work with resources from other files.

[–] starman@programming.dev 7 points 11 months ago* (last edited 11 months ago)

From the docs:

GitHub Copilot analyzes the context in the file you are editing, as well as related files

Tho, I don't know if it allways been that way, maybe they added bigger context later

[–] Kwartel@programming.dev 3 points 11 months ago

If you have those other files open, it also picks those up. And lately it seems to follow imports too, I feel like

[–] CaptKoala@lemmy.ml 12 points 11 months ago (2 children)

But the propaganda from GitHub said it was making devs 80%+/- more productive!

How could this have happened? /s

[–] kameecoding@lemmy.world 7 points 11 months ago

it works well for me, mostly accurately guesses what I am trying to do, helps a ton with boilerplate code

[–] wewbull@feddit.uk 3 points 11 months ago

It was 55% for me. Higher baseline I suppose. <\s>

[–] S3verin@slrpnk.net 12 points 11 months ago

Because we are the apes that wrote the code that copilot read.

[–] mr_tyler_durden@lemmy.world 2 points 11 months ago

I’m not understanding the CoPilot hate. It’s an amazing tool if you are competent. Even when it gets it wrong it still saves me 90%+ of the typing then I just correct what it did differently than how I want it.

Boilerplate becomes a breeze and I work way better when I have something to iterate on rather than coming up with it from scratch. It lets me play with and test ideas way faster and sometimes even does it differently than I’d do it which leads to learning new things and/or looking at the problem in a different way. I don’t blindly follow its output, sometimes I reject it wholesale, sometimes I edit it, sometimes it’s literally exactly what I would have typed myself.

[–] WuTang@lemmy.ninja -3 points 11 months ago

it bores me to death... all these coders using AI shit to pretend to save times while you just need to reduce the scope.