• floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    10
    ·
    6 months ago

    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
      link
      fedilink
      English
      arrow-up
      9
      ·
      6 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
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      6 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.”