• Nommer@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      3 months ago

      I may do that already when I get stuck… Tbf I am trying to learn and only ask it to explain how to do something or if I have a bug I can’t figure out. I feel sometimes it’s just best to get an answer if I’ve been stuck for a while because I’m not making progress anyway.

      • SpaceCowboy@lemmy.ca
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        3 months ago

        It’s not too bad for learning a new language, but you still have to make an effort to understand why the code it’s giving you works… or doesn’t work which can happen often.

        • interdimensionalmeme@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          3 months ago

          It’s so great at getting unstuck and learning news ways of doing thing that everyone knows but me. Even if most of its actual code is borked.

          • SpaceCowboy@lemmy.ca
            link
            fedilink
            arrow-up
            1
            ·
            3 months ago

            Yeah today after getting three bad answers in a row from ChatGPT I was quoting Thanos… “Fine. I’ll do it myself.”

  • parpol@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    3 months ago

    As funny of a joke “all programmers copy and paste” is, after 9 years that impostor syndrome should be gone, and if you still can’t figure out a solution without copying and pasting, maybe it is time to go back to the basics and learn how to code.

    • fidodo@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 months ago

      The difference between a junior and senior developer is that a senior developer actually understands what he’s copy pasting

      • dan@upvote.au
        link
        fedilink
        arrow-up
        4
        ·
        3 months ago

        I’m a senior developer and I rarely copy and paste… I’ll sometimes look at some other code to get ideas, but I retype it. It helps me understand the code, and I can refractor it or write it differently as I go.

      • Potatos_are_not_friends@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        Pretty much. I try to tell juniors that the things I’m teaching you is things I made a mistake on. I have a decade of failure and I’m trying to help you shortcut it.

        • SpaceCowboy@lemmy.ca
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          3 months ago

          But as soon as someone gets to an intermediate level and start thinking for themself and make those exact same mistakes.

          “We’ve been doing things wrong this whole time! I figured out a better way!” Then spend a lot of time implementing the “better” way only to find out it performs like shit and actually takes more work to implement and maintain anything.

          Everyone has to do that at least once.

    • blackbirdbiryani@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      I’ve only been programming seriously (for work) in the last two years and honestly don’t get the copy pasting memes. I get copy pasting a 1-3 line terminal snippet sometimes, but idk how people are getting away without actually writing their own code.

      • pup_atlas@pawb.social
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        I program professionally, and I copy paste all the time. The difference is when I copy paste, its 10-20 lines of code, not a line or two— and I’m not fishing for a solution to the problem. I already have the optimal solution in my head, and I am just searching for the solution I already know. It’s just faster than typing it by hand 🤷🏻

        • Alex@infosec.pub
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 months ago

          I do this often. Not because I can’t do it myself or understand what I’m doing, but why would I write the exact same code when it has been done and pasted online a million times?

  • force@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    3 months ago

    Depends on the language. I’m not gonna find shit to copy-paste for what I’m doing in Scala 3 or F#, but in Rust or C++ I’ll frequently Google an issue I can’t figure out and someone will have some fancy black magic hacker solution with super-iterators and turbofishies and weird type inference that I couldn’t think of myself and just throw it in my code with some minor modifications :)

  • andyburke@fedia.io
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    I get the joke.

    But if, like me, you actually feel this here’s how I got away from it: make sure you actually understand things.

    Read the error message over and over again, look up the words, understand what it is saying.

    If something isn’t working, start reading the code and making sure you understand what each line is doing.

    It will feel incredibly slow and painful at first. Eventually you will strengthen those.muscles, however, and it’ll become second nature.

    Then you can cut and paste with confidence! 🤣

    • Fuck spez@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      IDK man, all the way? I don’t think I’m good enough to have actual impostor syndrome like real developers.

      • Kyrgizion@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        Haha right? Not saying this is you but whenever people try to tell me I have impostor syndrome, I’m thinking like “incompetent people exist. I’m just one of them”.

  • gerryflap@feddit.nl
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    Do people really constantly copy-paste code? If I don’t know something I’ll look it up, but then I’ll read the answer and apply it to the code I’m writing rather than copying it directly. I rarely see a piece of code that I can copy over directly into what I’m doing, and even if I can it’s usually not thr best idea because the naming etc would be inconsistent

  • Blass Rose@pawb.social
    cake
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    You tell him “stop giving away our secrets!”

    And yeah, a lot of people in the comments are running away from the joke, but realistically, to copy+paste code and have it work, you generally have to have a grasp of the code, at least to ask what you want and to paste it and change the variable names, and write the lines to stitch it all together.

    Add imposter syndrome on top of that, and it may seem like you don’t do anything of use because you copied 3 functions out of a 1k line file.

      • Snot Flickerman@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        3 months ago

        Because, as I can attest as someone in their forties…

        Boomers spent my youth telling me that I just needed a college degree, any college degree, and I would have a great job lined up for me almost anywhere.

        Later, after many of us had graduated into a world that was absolutely fucking us we were told “Your degree was useless, why did you invest in something stupid that nobody uses like Early Childhood Education?” (something literally every child needs, adults with competent knowledge of early childhood education…)

        Further, they would go on to say “Look at the tech industry, there’s good jobs there. Only STEM degrees matter, who gives a fuck about art or the human condition or literature. Who needs fucking “media literacy” and who needs to learn from the past to make sure we don’t make the same mistakes! LEARN TO CODE!”

        “Learn to code” has been shoved down people’s throats by Boomers in positions of power for two decades now. After massive layoffs in the tech industries, it has become an even bigger joke than it was, because what are all those coders without jobs supposed to do? Learn to code? Pretty sure they already did that step.

  • Kyrgizion@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Funny, I’ve been in my current support/devops role for 9 years and every year I wonder more what the hell I’m doing. It somehow seems like I get dumber/lose knowledge/the field expands much more rapidly than my broken mind can keep up with.

    I feel like a glorified script kiddie most of the time. I couldn’t program my way out of a wet paper bag if my life depended on it.

  • waz@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    I feel like most of my googling of simple code is because I know what I’m trying to do, but I don’t remember the correct function name and or language structure for the language I’m currently using.

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      3 months ago

      This is about 50% of what I use ChatGPT for. Something I’ve done many times before, but I just need a quick reminder about the exact syntax.

      The other 50% is just creating DTOs that have properties that are suitable for parsing JSON or XML or can be used to dump data from SQL into. The boring shit.