• humorlessrepost@lemmy.world
      link
      fedilink
      English
      arrow-up
      43
      arrow-down
      18
      ·
      7 months ago

      This wasn’t made for programmers. It was made for middle management who think the reason the ticket is taking so long is because the devs can’t type more words per minute.

        • EatATaco@lemm.ee
          link
          fedilink
          English
          arrow-up
          19
          arrow-down
          4
          ·
          7 months ago

          The other poster is either speaking from a place of ignorance, as they’ve never really used it, of they just aren’t smart enough to learn how to use a new tool.

          As much as middle management sucks, devs blaming management for their own inability to learn is almost on the same level.

    • katy ✨@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      18
      arrow-down
      3
      ·
      7 months ago

      i mean i still think tab/auto completion is good to save time.

      the problem is when people become reliant on it and just have it write entire chucks of code without going through it and checking it or changing it after the baseline is done.

      • fossyou@lemm.ee
        link
        fedilink
        arrow-up
        5
        arrow-down
        2
        ·
        7 months ago

        Then that wouldn’t exactly be a time saver, but rather time-consuming? Paradox

        • katy ✨@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          7
          arrow-down
          3
          ·
          7 months ago

          i mean finishing a variable declare with a tab is pretty convenient.

          as is autocompleting an html5 structure.

          • Gamma@beehaw.org
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            2
            ·
            7 months ago

            Yeah, usually it’s pretty good autocomplete. Definitely makes my coding faster (and highlighting a chunk of SQL and asking it to modify it in plain English is magic)

      • TherouxSonfeir@lemm.ee
        link
        fedilink
        arrow-up
        6
        arrow-down
        5
        ·
        7 months ago

        Autocomplete is fine, but do we need “AI” to figure out left and right?

        And I agree, chunks of code are bad.

    • Tiefling IRL@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      10
      arrow-down
      3
      ·
      edit-2
      7 months ago

      Stuff like this is really useful when variable names are annoying, or when you have to repeat the same monotonous pattern over a large batch of code.

      My favorite use of AI in code so far has been refactoring deprecated feature flags. “Replace enableXYZFeatureFlag with true and optimize the code”. Bam, 1-2 hours’ worth of crunch work solved in minutes.

      • Kache@lemm.ee
        link
        fedilink
        arrow-up
        11
        arrow-down
        2
        ·
        7 months ago

        If it takes 1+ hours of work to remove a feature flag branch in an area of code, I wouldn’t trust the correctness of anything the AI writes and would be super skeptical about anything the humans had written.

        • Tiefling IRL@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          6
          ·
          edit-2
          7 months ago

          It takes a long time because it hits a lot of files, not because it’s logically complex. Also, that’s why unit and integration tests exist.

      • BurningnnTree@lemmy.one
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 months ago

        Can you please describe how you do this? I thought Github Copilot can only make changes to the currently open tab? It’s been a few months since I’ve used it, and I’ve only used the Visual Studio version, which I think isn’t as good as the Visual Studio Code version. Has Copilot already gotten to the point where you can tell it to make changes to an entire codebase?

        • Tiefling IRL@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          7 months ago

          I do go file by file, but I just copy and paste the same query into each. It also gives me a chance to do a quick review before moving on. It’s still a manual process but it’s a HELL of a lot faster than manually refactoring.

          (I can’t give too many more details though since I use proprietary software that isn’t public facing)

    • Oinks@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      6 months ago

      You could say that about any kind of autocomplete. Why would people install snippet plugins into their vim/emacs? Sure you can just type everything by hand but it’s just more convenient.

      Personally I find these kinds of inline AI suggestions make a more convincing use case than trying to prompt engineer a Chat based LLM and diverting your attention to phrasing specifics instead of the actual problem space.