• damnthefilibuster@lemmy.world
    link
    fedilink
    English
    arrow-up
    58
    ·
    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.

  • BeigeAgenda@lemmy.ca
    link
    fedilink
    arrow-up
    52
    ·
    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.

    • 6xpipe_@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      You’re supposed to do that anyway. Code on SO is licensed as CC BY-SA, which requires attribution.

        • 6xpipe_@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          1 year ago

          The links from that post and top comment point out that that initiative was dropped. It got mired down in bikeshedding from hundreds of opinions and SO eventually just said, “Fuck it.”

          The MIT announcement thread was edited with the cancellation announcment:

          Update: January 15, 2016

          Thank you for your patience and feedback. The changes proposed here have been delayed indefinitely - we’ll be back later to open some more discussions.

          The top comment from your link points out the current license:

          TL;DR: Source code on SO is still licensed under CC-BY-SA.

          And CC BY-SA is the only license listed on the official help page.

          • Content contributed before 2011-04-08 (UTC) is distributed under the terms of CC BY-SA 2.5.
          • Content contributed from 2011-04-08 up to but not including 2018-05-02 (UTC) is distributed under the terms of CC BY-SA 3.0.
          • Content contributed on or after 2018-05-02 (UTC) is distributed under the terms of CC BY-SA 4.0.
    • rambaroo@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      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.

  • Marxism-Fennekinism@lemmy.ml
    link
    fedilink
    English
    arrow-up
    51
    ·
    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.

    • Chunk@lemmy.world
      link
      fedilink
      arrow-up
      23
      ·
      1 year ago

      When I was 8 I was making a “video game” (a complete bundle of code trash 😉) and I would copy people’s code and everything would melt down. I would spend hours debugging just to realize I needed to pass an extra argument or indent or something.

      Today I’m better at my job. I am now the one writing confusing function APIs 😈

  • visor841@lemmy.world
    link
    fedilink
    arrow-up
    24
    arrow-down
    2
    ·
    1 year ago

    Plagiarism isn’t just using someone else’s work. It’s when you use someone else’s work and claim it was your own. The programmers aren’t plagiarizing as they’re being freely admitting it’s not their work.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      30
      ·
      1 year ago

      If you’ve ever copied and pasted code from StackOverflow without mentioning the author, linking the creative commons license, and linking to the author’s account you’ve technically violated the creative commons license and I’d argue you’ve technically plagiarized.

      Does anyone care? No, not really.

        • Zink@programming.dev
          link
          fedilink
          arrow-up
          5
          arrow-down
          1
          ·
          1 year ago

          Uh oh. So you think legal might be on to us, like, existing?

          I know I’m safe though because every line of code I have ever written came to me in a vision as I stared at a flat white wall.

          • jeff 👨‍💻@programming.dev
            link
            fedilink
            English
            arrow-up
            6
            ·
            1 year ago

            flat white wall

            Hey guys, look at this light mode user! My wall is dark mode. 😎

            In a serious note, a developer should be aware of how licenses work. Just copy pasting from Stack Overflow likely breaks the defaults license. You could open up yourself or your company to serious legal trouble. And it really isn’t ethical. I wouldn’t want code I shared in a certain context be stolen by a large corporation and make them money

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

              Lol! I figured a plain white wall was as featureless as you could get for something to stare at while you mentally conjure code.

              And since I’m in the office today (voluntarily!) there is literally a white wall to stare at above my monitors! But there is also a window slightly to the side, so my “staring blankly while totally thinking of something that will help the company” game is strong.

              Dark mode is definitely the way to go though. I have three monitors and one phone in front of me, and 3/4 currently show a dark background in the application on them.

  • Still@programming.dev
    link
    fedilink
    arrow-up
    22
    ·
    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

    • rtxn@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      ·
      edit-2
      1 year ago

      “Here’s this header file that implements 99% of the mathematics, because I’m not paid to teach mathematics.”

      Ironically I learned a lot more about linear algebra from that header file than from my actual teacher.

      • intelati@programming.dev
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        I just saw a “faster linear algebra” package scroll by on pacman. I almost pulled up the source/documentation.

        The only thing that stopped me was that I have about 199 things more relevant to my usage than linear algebra.

  • Codex@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    All code already exists in Plato’s world of perfect abstractions. Programmers merely view this ideal world darkly and scribble what imperfect algorithms they can vaguely remember.

  • Rheios@ttrpg.network
    link
    fedilink
    arrow-up
    11
    ·
    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…)