• @[email protected]
    link
    fedilink
    English
    971 month ago

    You got it admit, it is a good suggestion. It just wasn’t the right one. But it is trained well enough to correlate left and right together. Since those are very commonly associated together it is certainly a logical choice.

    • @[email protected]
      link
      fedilink
      641 month ago

      . But it is trained well enough to correlate left and right together

      eliza could do that 60 years ago

      • FaceDeer
        link
        fedilink
        111 month ago

        Why hasn’t it been incorporated into IDEs until now?

        • @[email protected]
          link
          fedilink
          0
          edit-2
          1 month ago

          Up until now most people hated when shit randomly popped up while they were typing.

          The Apple went and made the iPhone and now we have a whole generation that expects it.

          • FaceDeer
            link
            fedilink
            41 month ago

            Within IDEs people go out of their way to install Intellisense so that “shit randomly pops up while they’re typing.” There are companies whose whole existence depends on people wanting that to happen.

      • @[email protected]
        link
        fedilink
        61 month ago

        Ah, come-on, why do you think Eliza could do that 60 years ago?

        (It couldn’t. It’s at most 40 years old technology, and way more likely just 30. Even though you could program Eliza to do something like this, it would be way too specific for any use.)

    • @Tamkish
      link
      21 month ago

      wdym it isn’t the right one? It clearly says time RIGHT

      • FaceDeer
        link
        fedilink
        51 month ago

        To the contrary, I see code like that all the time in my career. I’ve written some.

  • voxel
    link
    fedilink
    73
    edit-2
    1 month ago

    don’t get the negativity towards copilot in other comments.
    it’s a really smart autocomplete, and this is exactly what i wanted for the past 5 years.
    (yeah it’s not going to replace programmers or whatever people’s exaggerated opinions of it are)

    wanna quickly create a wgpu bind group?
    let texture_bind_group = <tab> <tab> and it’s smart enough to understand the context and pull in texture and texture sampler that are already defined as local variables.

    too lazy to type this obvious thing in?
    (like of course the next opcode islet op = self.fetch();) just press tab and move on with your life.

    wanna quickly refactor something?
    select, ask CP Chat to “replace all if statements with match”, check if it’s correct and click confirm (it will even show git-style diffs, so it’s hard for something unexpected to slip in)

    it’s not perfect, and it’s suggestions do not match your intention like 50% of the time but when they do match or your intention is REALLY obvious (like you already wrote a clear and concise variable name and need to complete the value), you’re a single keypress away from completing those 2 lines of code

    It’s not a total deal breaker but it’s definitely very useful. (especially for me, because of my very short attention span. unless i can quickly complete a thing I’m currently working on in less than a minute i will forget about the next 10 things I was thinking of doing)

    also i don’t believe the price is justified, but it’s free for students so of course I’m gonna use it.

    (you just need to verify your student email and upload a photo of your student id on education.github.com, and you get a free gh copilot subscription, gh pro account, priority support and promos on loads of services like heroku etc while you’re a student)

    • @[email protected]
      link
      fedilink
      English
      271 month ago

      I’ve been using it a lot lately in the day job.

      My experience has been it’s close but wrong often.

      It shines when I am doing the same thing for 20 variables, but then I should be using a loop instead and copilot won’t go there.

    • @[email protected]
      link
      fedilink
      English
      17
      edit-2
      1 month ago

      too lazy to type this obvious thing in?

      This has been the thing for me. I get really bored and lose focus when doing all the obvious repetitive stuff. And the obvious stuff is the stuff I find copilot does best. For anything that requires thought I’m engaged. Those are the fun parts of the job. It lets me do more of the fun part.

      The one major downside that I’ve found is that sometimes I just want to tab complete a long variable/function name, and because of copilot i dont have “old style” tab completion anymore. (I could definitely still handle this myself, but i haven’t)

      edit: this all to say that I don’t use copilot to write code that I don’t know how to write, I use copilot to write code that I’ve written 1000 times before and don’t want to write again. Copilot does a good job of looking through all the open files for context to help make sure the suggestions actually fit into the codebase’s pre-existing style.

    • @[email protected]
      link
      fedilink
      81 month ago

      What’s CP Chat? Im a bit afraid to type that into a search engine but it seems to be what I’m missing in my Copilot-assisted flow. It’s a great autocomplete but sometimes refactoring would be useful too.

      • voxel
        link
        fedilink
        6
        edit-2
        1 month ago

        well I’m using lower-ish-level stuff like wgpu a lot, so there’s a lot of repeated code in my codebase with only small variations, but I can’t really encapsulate it into anything since all of my pipelines are completely different and have different requirements (it’s basically already as encapsulated as it gets without limiting freedom)

  • kamen
    link
    fedilink
    431 month ago

    The opposite of the opposite of “left” is “wrong”.

  • @[email protected]
    link
    fedilink
    English
    391 month ago

    I was surprised when I made attackPower and it suggested defensePower next. It was then that it sunk in that the autocomplete was AI.

      • @[email protected]
        link
        fedilink
        English
        121 month ago

        Well, LLMs are, at least. But also, autocomplete is already AI, so really LLMs are just glorified AI. And that checks out, they are the ones that get all the glory*. Everything else is just spooky algorithms.

        *Except for walking robots and stuff like that.

      • FaceDeer
        link
        fedilink
        31 month ago

        I am becoming increasingly convinced that so is the human brain.

      • @[email protected]
        link
        fedilink
        1
        edit-2
        1 month ago

        AI of today is a marketing slogan. Well, same as AI of yesterday. There is so much AI around us but not an ounce of intelligence.

    • @[email protected]
      link
      fedilink
      121 month ago

      If anything this is a great example of why that could happen. Simple leaps of logic without context.

      • @[email protected]
        link
        fedilink
        -4
        edit-2
        1 month ago

        I am just making fun of all those AI doomsayers on Reddit. It’s nowhere close enough to be even called such. It’s just a mindless algorithm, a tool. Math operation. Are calculators smart? Well yes from a certain point of view.

  • Chahk
    link
    fedilink
    161 month ago

    Glorified autocomplete. That, and Clippy.

    • holgersson
      link
      fedilink
      41 month ago

      Autocomplete and Clippy havent translated a script from one language into another for me without major errors yet.

    • @[email protected]
      link
      fedilink
      41 month ago

      Glorified autocomplete

      That’s what I need most of the time, though. I don’t see these AI things as replacing programmers or writing large chunks of code. I just see them as an improvement over the autocompletion/IntelliSense features we’re all using already.

    • kbin_space_program
      link
      fedilink
      -21 month ago

      Clippy was occasionally useful as it could offer shortcuts you didn’t necessarily know about.

      This is just bad autocomplete

      • @[email protected]
        link
        fedilink
        English
        81 month ago

        I was lucky enough to get in on my company’s beta test for copilot.

        When I hear people say it’s bad, all that tells me is that they are either completely ignorant and have never really used it, or they aren’t good at learning how to use new tools.

        • kbin_space_program
          link
          fedilink
          -1
          edit-2
          1 month ago

          The example shown is setting a timer, then copilot suggests timeright value.

          Contextually, it is bad autocomplete.

          In practice, chatgpt4 is incapable of producing code to my coding standards. Edit: to clarify, its incapable of doing that in a timely enough manner that it saves me any time.

          • FaceDeer
            link
            fedilink
            61 month ago

            The example shown was specifically selected because it’s funny, not because it’s representative.

            The fact that you called the tool “chatgpt4” suggests you’re not experienced with copilot. They’re not the same thing even if they’re using similar LLMs as a component.

            • kbin_space_program
              link
              fedilink
              01 month ago

              I know its not chatgpt4, I never said it was?

              That paragraph is on its own because it is a different topic. In this case I was using my own experience experimenting with chatgpt4 as to why I won’t be using it any time soon.

    • @[email protected]
      link
      fedilink
      English
      241 month 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.

      • @[email protected]
        link
        fedilink
        251 month ago

        Guess I’m not a programmer, because this feature has been a real god-send in my recent projects.

        • @[email protected]
          link
          fedilink
          English
          161 month 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 ✨
      link
      fedilink
      151 month 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
        link
        fedilink
        21 month ago

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

        • katy ✨
          link
          fedilink
          41 month ago

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

          as is autocompleting an html5 structure.

          • Gamma
            link
            fedilink
            English
            01 month 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)

      • @[email protected]
        link
        fedilink
        11 month ago

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

        And I agree, chunks of code are bad.

    • Fire Witch
      link
      fedilink
      8
      edit-2
      1 month 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.

      • @[email protected]
        link
        fedilink
        81 month 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.

        • Fire Witch
          link
          fedilink
          6
          edit-2
          1 month 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.

      • @[email protected]
        link
        fedilink
        English
        21 month 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?

        • Fire Witch
          link
          fedilink
          3
          edit-2
          1 month 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)

    • @[email protected]
      link
      fedilink
      51 month 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.