this post was submitted on 12 May 2024
239 points (95.8% liked)

Programmer Humor

19311 readers
171 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] wizardbeard@lemmy.dbzer0.com 19 points 4 months ago (1 children)

Same thing with all the folks who took the "copy pasting from stackoverflow" joke literally.

I regularly have to find guidance online through code examples, but you need to understand what the code you've found actually does under the hood for when it inevitably has issues because it wasn't made for your specifc use case.

[–] floofloof@lemmy.ca 11 points 4 months ago (2 children)

Do people actually copy and paste code with no understanding of how it works, from SO or Copilot? I always thought this was just a joke.

[–] datavoid@lemmy.ml 10 points 4 months ago

I feel like there is almost no chance of a copilot program working as expected without having an understanding of the code it writes. It makes some hilariously bad choices at times, and frequently drops and changes code that was added previously.

[–] Redkey@programming.dev 6 points 4 months ago* (last edited 4 months ago)

As someone who has often been asked for help or advice by other programmers, I know with 100% certainty that I went to university and worked professionally with people who did this, for real.

"Hey, can you take a look at my code and help me find this bug?"
(Finding a chunk of code that has a sudden style-shift) "What is this section doing?"
"Oh that's doing XYZ."
"How does it work?"
"It calculates XYZ and (does whatever with the result)."
(Continuing to read and seeing that it actually doesn't appear to do that) "Yes, but how is it calculating XYZ?"
"I'm not 100% sure. I found it in the textbook/this 'teach yourself' book/on the PQR website."