• ggppjj@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 minutes ago

    It introduced me to the basics of C# in a way that traditional googling at my previous level of knowledge would’ve made difficult.

    I knew what I wanted to do and I didn’t know what was possible or how to ask without my question being closed as a duplicate with a link to an unhelpful post.

    In that regard, it’s very helpful. If I had already known the language well enough, I can see it being less helpful.

  • Choco1ateCh1p@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    51 minutes ago

    Every now and then, GitHub Copilot saves me a few seconds suggesting some very basic solution that I am usually in the midst of creating. Is it worth the investment? No, at least not yet. It hasn’t once “beaten” me or offered an improved solution. It (more frequently than not) requires the developer to understand and modify what it proposes for its suggestions to be useful. Is is a useful tool? Sure, just not worth the price yet, and obviously not perfect. But, where I’m working is testing it out, so I’ll keep utilizing it.

  • histic@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 hour ago

    Garbage in garbage out is how they all work if you give it a well defined prompt you can get exactly what you want out of it most of the time but if you just say fix this problem it’ll just fix the problem ignoring everything else

    • dubyakay@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      I run code snippets by three or four LLMs and the consensus is never there. Claude has been the worst for me.

      • CaptSneeze@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 hours ago

        Which one has been best? I’m only a hobbyist, but I’ve found Claude to be my favorite, and the best UI by a mile.

  • Landless2029@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    7 hours ago

    Everyone keeps talking about autocomplete but I’ve used it successfully for comments and documentation.

    You can use vs code extensions to generate and update readme and changelog files.

    Then if you follow documentation as code you can update your Confluence/whatever by copy pasting.

    • Dremor@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 hour ago

      I also use it a lot for unit tests. It helps a lot when you have to write multiple edge cases, and even find new one at times. Like putting a random int in an enum field (enumField = (myEnum)1000), I didn’t knew you could do that…

      • Landless2029@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 hour ago

        Yeah. I’ve found new logic by asking GPT for improvements on my code or suggestions.

        I cut the size of a function in half once using a suggested recursive loop and it blew my mind.

        Feels like having a peer to do a code review on hand at all times.

  • VonReposti@feddit.dk
    link
    fedilink
    English
    arrow-up
    21
    ·
    10 hours ago

    While I am not fond of AI, we do have access to it at work and I must admit that it saves some time in some cases. I’m not a developer with decades of experience in a single language, so something I am using AI to is asking “Is it possible to do a one-liner in language X where it does Y?” It works very well and the code is rarely unusable, but it is still up to my judgement whether the AI came up with a clever use of functions that I didn’t know about or whether it crammed stuff into a single unreadable line.

  • Greg Clarke@lemmy.ca
    link
    fedilink
    English
    arrow-up
    39
    ·
    13 hours ago

    Generative AI is great for loads of programming tasks like helping create regular expressions or syntax conversions between languages. The main issue I’ve seen in codebases that rely heavily on generative AI is that the “solutions” often fix today’s bug while making future debugging more difficult. Generative AI makes it easy to go fast in the wrong direction. Used right it’s a useful tool.

  • TrickDacy@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    13 hours ago

    I truly don’t understand the tendency of people to hate these kinds of tools. Honestly seems like an ego thing to me.

    • tee9000@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      16 minutes ago

      Its really weird.

      I want to believe people arent this dumb but i also dont want to be crazy for suggesting such nonsensical sentiment is manufactured. Such is life in the disinformation age.

      Like what are we going to do, tell all Countries and fraudsters to stop using ai because it turns out its too much of a hassle?

    • GreenKnight23@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      7 hours ago

      I sent a PR back to a Dev five times before I gave the work to someone else.

      they used AI to generate everything.

      surprise, there were so many problems it broke the whole stack.

      this is a routine thing this one dev does too. every PR has to be tossed back at least once. not expecting perfection, but I do expect it to not break the whole app.

      • TrickDacy@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        4 hours ago

        Like I told another person ITT, hiring terrible devs isn’t something you can blame on software.

        • GreenKnight23@lemmy.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 hours ago

          that depends on your definition of what a “terrible dev” is.

          of the three devs that I know have used AI, all we’re moderately acceptable devs before they relied on AI. this formed my opinion that AI code and the devs that use it are terrible.

          two of those three I no longer work with because they were let go for quality and productivity issues.

          so you can clearly see why my opinion of AI code is so low.

          • TrickDacy@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 hour ago

            I would argue that it’s obvious if someone doesn’t know how to use a tool to do their job, they aren’t great at their job to begin with.

            Your argument is to blame the tool and excuse the person who is awful with the tool.

            • GreenKnight23@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              6 minutes ago

              my argument is that lazy devs use the tool because that’s what it was designed for.

              just calling a hammer a hammer.

              • aesthelete@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 minute ago

                Some tools deserve blame. In the case of this, you’re supposed to use it to automate away certain things but that automation isn’t really reliable. If it has to be babysat to the extent that I certainly would argue that it does, then it deserves some blame for being a crappy tool.

                If, for instance, getter and setter generating or refactor tools in IDEs routinely screwed up in the same ways, people would say that the tools were broken and that people shouldn’t use them. I don’t get how this is different just because of “AI”.

      • TrickDacy@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        13 hours ago

        Yeah I’m sure you are concerned about the carbon footprint of it and that some dude you talked to once was arrogant about this technology.

        • FlorianSimon@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          8
          ·
          11 hours ago

          Of course you know me better than myself.

          I guess you wanted an answer but decided upfront you weren’t gonna like it no matter what? Not much I can do about that.

          • TrickDacy@lemmy.world
            link
            fedilink
            English
            arrow-up
            6
            ·
            11 hours ago

            You probably don’t remember previously admitting to me that you never had used copilot, but at that time talked shit about it anyway. So it’s funny I clocked you perfectly as a an anti-LLM zealot – being one of the few people to respond here hatefully once again.

    • gaael@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      12 hours ago

      Also, when a tool increases your productivity but your salary and paid time off don’t increase, it’s a tool that only benefits the overlords and as such deserves to be hated.

      • stephen01king@lemmy.zip
        link
        fedilink
        English
        arrow-up
        4
        ·
        10 hours ago

        Oh, so do you use a 13 year old PC because a newer one increases your productivity without increasing your salary and paid time off?

      • TrickDacy@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        12 hours ago

        Some people feel proud that their work got done quicker and also aren’t micromanaged so if they choose, yes actually they can have more time for their personal lives. Not everyone’s job is purely a transaction in which they do the absolute minimum they can do without being fired.

        I hope you feel better soon, because you’re clearly bitter and lashing out at whatever you can lash at.

        • ElectricMachman@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          3
          ·
          9 hours ago

          I’m glad you live in this fantasy world where more productivity = more personal time, but it doesn’t always work like that, especially in salaried positions. More productivity generally means more responsibility coming your way, which rarely results in an increased salary.

  • einkorn@feddit.org
    link
    fedilink
    English
    arrow-up
    75
    ·
    18 hours ago

    For me, it is a glorified auto-complete function. Could definitely live without it.

    • Kualk@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 hour ago

      We always have to ask what language is it auto-completing for? If it is a strictly typed language, then existing tooling is already doing everything possible and I see no need for additional improvement. If it is non-strictly typed language, then I can see how it can get a little more helpful, but without knowledge of actual context I am not sure if it can get a lot more accurate.

      • MeatsOfRage@lemmy.world
        link
        fedilink
        English
        arrow-up
        18
        ·
        13 hours ago

        Hell yea. Our unit test coverage went way up because you can blow through test creation in second. I had a large complicated migration from one data set to another with specific mutations based on weird rules and GPT got me 80% of the way there and with a little nudging basically got it perfect. Code that would’ve taken a few hours took about 6 prompts. If I’m curious about a new library I can get a working example right away to see how everything fits together. When these articles say there’s no benefit I feel people aren’t using these tools or don’t know how to use them effectively.

        • SkyeStarfall
          link
          fedilink
          English
          arrow-up
          4
          ·
          4 hours ago

          Yeah, it’s useful, you just gotta keep it on a short leash, which is difficult when you don’t know what you’re doing

          Basically, it’s a useful tool for experienced developers that know what to look out for

    • Warl0k3@lemmy.world
      link
      fedilink
      English
      arrow-up
      29
      ·
      16 hours ago

      Its basically a template generator, which is really helpful when you’re generating boilerplate. It doesn’t save me much if any time to refactor/fill in that template, but it does save some mental fatigue that I can then spend on much more interesting problems.

      It’s a niche tool, but occasionally quite handy. Without leaps forward technically though, it’s never going to become more than that.

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    edit-2
    13 hours ago

    lol Uplevel’s “”“full report”“” saying devs using Copilot create 41% more bugs has 2 pages and reads like a promotional material.

    you can download it with a 10 minute email if you really want to see for yourself.

    just some meaningless numbers.

  • Grandwolf319@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    10
    ·
    13 hours ago

    Yep, by definition generative AI gets worse the more specific you get. If you need common templates though, it’s almost as good as today’s google.

  • 9point6@lemmy.world
    link
    fedilink
    English
    arrow-up
    22
    ·
    17 hours ago

    My main use is skipping the blank page problem when writing a new suite of tests—which after about 10 mins of refactoring are often a good starting point