• HiddenLayer5@lemmy.ml
    link
    fedilink
    English
    arrow-up
    47
    ·
    edit-2
    1 year ago

    Anyone can copy code. Making the copied code work well in your own codebase, and fixing it when it doesn’t, is what requires skill and experience.

    • llama@midwest.social
      link
      fedilink
      English
      arrow-up
      14
      ·
      1 year ago

      It’s no exaggeration sometimes it takes a dozen different how-to blogs and stack overflows to find an example where somebody has exactly what you need and nothing more. So many people add so much fluff and unusual structures that the thing they’re claiming the code does can’t even be found.

  • llama@midwest.social
    link
    fedilink
    English
    arrow-up
    19
    ·
    1 year ago

    Public domain? Creative commons? MIT? BSD? GPL? You mean I’m allowed to use these things without failing?

  • BeigeAgenda@lemmy.ca
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    1 year ago

    When I get helper functions from stack overflow or similar, I normally add a comment with a link to the article, mostly for my own sake so if there’s any problems later I can re-read the article to get more info, or use it to try and find other solutions.

    • rambaroo@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      For JS shit I usually have to rewrite them because they aren’t production quality in terms of readability. Still really useful for getting answers on obscure stuff

      • BeigeAgenda@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        The quality is definitely varying, the hardest part is to find a example that fits what you expect, or looks like it can be refactored into what you need.

  • Rheios@ttrpg.network
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Unless there’s a bug. Then it is my code and I have to fix it. Immediately. No, I don’t want to discuss my thought process for “why I made that decision” I want to fix it. Why are we having a chat about milk pouring technique while it is dripping off the fucking table. Prod is burning and you want to fiddle! (Meanwhile this is a minor bug that nobody has ever actually complained about but just the knowledge that it was my fault…)

  • vzq@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    I have a suspicion that the reason universities crack down on plagiarism this hard (to the point of outright making up offenses like ‘self plagiarism’), is that it’s the only form scientific misconduct that is easy to prove and investigate.

    If you are wondering if it’s true, just look at how long it took for Hendrik Schon to get caught. And even then, the smoking gun was reusing (fake) graphs in a publication.

    • notabot@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      They crack down on plagerism because they’re trying to teach and assess you, not whoever you copied from. If they wanted copied answers, they could just photocopy the answers for you and save everyone a lot of effort.

      The real world may be different, but the idea is to get the knowledge and, more importantly, the way of thinking about your particular subject, into your head. Once you know that, you know what to copy.

      • vzq@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I was trying to make a larger point about the concept of plagiarism as a form of scientific misconduct. In a teaching setting you are just perpetrating exam fraud and should get nailed to the wall.

        • notabot@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          Ah, fair enough, I think I misunderstood your point.

          Yes, plagiarism as scientific rather than academic misconduct is cracked down on hard. As you said, it’s easy to prove, and, I suspect they don’t like the idea of having their own work copied without attribution.

  • Still@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    well using someone’s code properly licensed isn’t plagiarism

    a fair few of my uni classes were like take this guys code and make it do this, which were like 4 lines changes

  • damnthefilibuster@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Yes, because till University, you’re trying to learn something new. And the best way to learn is by doing.

    At work, all you’re trying to do is save money (for the corporation). Best way to do that is to reuse, recycle.

  • WhiteHotaru@feddit.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    It is called a programming language. I guess repeating some sentences or even the idea for a story is normal when you write a book or code a program.

    • FleetingTit@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      There are also a lot of recurring problems, obscure bugs, performance enhancements that someone has already solved. Software development should care about completing a task, not inventing the wheel (or an image upload) the millionth time.