Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. GitHub Copilot...

GitHub Copilot...

Scheduled Pinned Locked Moved The Lounge
questionai-coding
24 Posts 17 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Daniel Pfeffer

    Interesting point. Could it be that the only reason for humans' long-term existence is to "salt" the AI models?

    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

    H Offline
    H Offline
    honey the codewitch
    wrote on last edited by
    #13

    I don't think I understand the question? The way I'm interpreting it doesn't make sense, but I can't figure it out. The way I'm reading it suggests that AI has been around for the whole of human history :~ but I know that's not what you're saying.

    Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

    D 1 Reply Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      Have you tested it? Any conclusions?

      Quote:

      Did you know that research shows developers who use GitHub Copilot complete tasks 2X faster compared to benchmarks? Plus, the mental energy they save helps them feel more satisfied and have more fun with their work.

      That's from an email I received from GitHub (MS)... To be honest I can't say anythin good about Copilot - all 5 times I asked a question it bomarded me with total nonsence (and not working, and mostly not even compiling) code solutions, meanwhile not paying attention to the details but hanging on the recognized keywords (like picking 'working' from 'not working')... However, I will form a firm oppinion after at least 50 times of using it...

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      S Offline
      S Offline
      snoopy001
      wrote on last edited by
      #14

      I can't say anything about Copilot, but I can about its Gemini counterpart, which is currently in the free stage. The autocomplete works better than the standard autocomplete. But as always, read carefully - the bot doesn't understand the purpose of this piece of code. For repetitive tasks, it works great. But for longer functions, I need a lot of time to review. Sometimes I was surprised. The function was written in a way I would never use. But the result was correct and sometimes even better. I see these bots more in the area of ​​learning than productive creation. But yes - they are fun too. When it comes to learning other people's code, they are really a help.

      1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        Have you tested it? Any conclusions?

        Quote:

        Did you know that research shows developers who use GitHub Copilot complete tasks 2X faster compared to benchmarks? Plus, the mental energy they save helps them feel more satisfied and have more fun with their work.

        That's from an email I received from GitHub (MS)... To be honest I can't say anythin good about Copilot - all 5 times I asked a question it bomarded me with total nonsence (and not working, and mostly not even compiling) code solutions, meanwhile not paying attention to the details but hanging on the recognized keywords (like picking 'working' from 'not working')... However, I will form a firm oppinion after at least 50 times of using it...

        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

        D Offline
        D Offline
        Davyd McColl
        wrote on last edited by
        #15

        And another study I saw the other day contradicts that email: [Study shock! AI hinders productivity and makes working worse • The Register](https://www.theregister.com/2024/07/26/ai\_hinders\_productivity/) That study mirrors my experience, tbh. I've found "ai-powered" code tools to create more work than they take away because (a) I'd say about 50% of suggestions are completely wrong and the rest are either trivial or subtly wrong.

        ------------------------------------------------ If you say that getting the money is the most important thing You will spend your life completely wasting your time You will be doing things you don't like doing In order to go on living That is, to go on doing things you don't like doing Which is stupid. - Alan Watts https://www.youtube.com/watch?v=-gXTZM\_uPMY

        1 Reply Last reply
        0
        • D Daniel Pfeffer

          We don't use it at work because of the potential liability of using copyrighted code. I understand that MS will not indemnify anyone against lawsuits for copyright violation if Copilot outputs a block of copyrighted code. Even if this were not an issue, at the current state of the art I have to thoroughly review any suggestions by Copilot and its ilk. By the time I've done that, I might as well have written the code by myself. Copilot will only be useful if and when it can reliably output entire blocks of code, rather than snippets. At which time, see my first point.

          Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

          B Offline
          B Offline
          BryanFazekas
          wrote on last edited by
          #16

          Daniel Pfeffer wrote:

          Even if this were not an issue, at the current state of the art I have to thoroughly review any suggestions by Copilot and its ilk. By the time I've done that, I might as well have written the code by myself.

          This is my POV on "self driving" vehicles -- if I have to have my hands on the wheel and be paying attention 100% of the time, why do I need it?

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            I've been using it for the last couple of months. You have to treat it like you're an expert QA abuser here. Context is EVERYTHING. The more detail, the better. If you don't describe in nauseating detail what you're working on, the app type, what you want the app to do, the problems you're having, ... It's going to do what we do when we come across an idiot in QA who doesn't know how to ask a question. It's going to guess at what you're doing as best it can. But what you said about code that doesn't compile is true. If you're not watching what it's doing, it will spit out code that doesn't compile. I've had multiple occasions where it generated WPF XAML and used properties on classes that didn't exist. In these cases, I told it what it did wrong, and to give it credit, it did come up with corrected solutions, even ones that didn't involve just changing a property, but instead, rewrote the entire block using an entirely different method to solve the original problem. It works best if you don't try and treat it like you're in QA. Treat it like it's a friend you tell everything to about your code and the results get better. It's a tool like any other, where you have to learn to use correctly. Would I trust it to write production quality code? Not a chance, but it can be a decent helper. We're in no danger at all of AI replacing us, or even replacing QA here.

            Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak

            R Offline
            R Offline
            rtischer8277
            wrote on last edited by
            #17

            I agree. When working on code with Copilot I start out with the code context. Then I explain my problem and include the compiler error message. Copilot commiserates and rewrite my code, improving it. Then it offers alternatives. The more descriptive your prompt, the better the answer. I never ever expect Copilot to design or architect for me. I can already barely remember the time when I had to look up obscure syntax and battle, in my case, Microsoft regarding documentation errors and get rebuffed with "Need more information" and "Not important enough" and issue is "closed".

            1 Reply Last reply
            0
            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

              Have you tested it? Any conclusions?

              Quote:

              Did you know that research shows developers who use GitHub Copilot complete tasks 2X faster compared to benchmarks? Plus, the mental energy they save helps them feel more satisfied and have more fun with their work.

              That's from an email I received from GitHub (MS)... To be honest I can't say anythin good about Copilot - all 5 times I asked a question it bomarded me with total nonsence (and not working, and mostly not even compiling) code solutions, meanwhile not paying attention to the details but hanging on the recognized keywords (like picking 'working' from 'not working')... However, I will form a firm oppinion after at least 50 times of using it...

              "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

              B Offline
              B Offline
              Bruce Patin
              wrote on last edited by
              #18

              CoPilot allowed me to have somewhat in-depth conversations about nuclear physics and criticality that Microsoft newest AI would not handle. Except for that, so far, all the AI either refuse to discuss controversial subjects or adhere to the official line. I find this problematic.

              1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                Have you tested it? Any conclusions?

                Quote:

                Did you know that research shows developers who use GitHub Copilot complete tasks 2X faster compared to benchmarks? Plus, the mental energy they save helps them feel more satisfied and have more fun with their work.

                That's from an email I received from GitHub (MS)... To be honest I can't say anythin good about Copilot - all 5 times I asked a question it bomarded me with total nonsence (and not working, and mostly not even compiling) code solutions, meanwhile not paying attention to the details but hanging on the recognized keywords (like picking 'working' from 'not working')... However, I will form a firm oppinion after at least 50 times of using it...

                "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                D Offline
                D Offline
                dandy72
                wrote on last edited by
                #19

                As far as I'm concerned, whatever it provides can be useful as a starting point that you then adapt yourself to your own needs; it's never a solution that you can just copy and paste. That should never be the goal, no matter how good it gets. Does it save me time? Yes it has, but more often than not it's just to set me on the right path for further research, it's not the final destination. As other have pointed out, it might generate code that doesn't even compile. But an experienced developer should be able to get something useful out of it, and fix the wrong parts himself. And in hindsight, all 3 paragraphs I wrote above are essentially each saying the same thing.

                1 Reply Last reply
                0
                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                  Have you tested it? Any conclusions?

                  Quote:

                  Did you know that research shows developers who use GitHub Copilot complete tasks 2X faster compared to benchmarks? Plus, the mental energy they save helps them feel more satisfied and have more fun with their work.

                  That's from an email I received from GitHub (MS)... To be honest I can't say anythin good about Copilot - all 5 times I asked a question it bomarded me with total nonsence (and not working, and mostly not even compiling) code solutions, meanwhile not paying attention to the details but hanging on the recognized keywords (like picking 'working' from 'not working')... However, I will form a firm oppinion after at least 50 times of using it...

                  "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                  S Offline
                  S Offline
                  Steve Naidamast
                  wrote on last edited by
                  #20

                  Why would I need an AI Assistant if I knew what I was doing and what I wanted to write as code? Seems like Co-Pilot is merely a redundant piece of software that Microsoft wants professionals to use with no real and apparent reasoning... Unless of course, Co-Pilot has another layer of surveillance software in it. I have never tried the software and have no intentions for doing so. In fact, I have been looking at moving my development efforts to Linux. I wish JetBrains with its Rider ID would get its act together with WPF support...

                  Steve Naidamast Sr. Software Engineer Black Falcon Software, Inc. blackfalconsoftware@outlook.com

                  1 Reply Last reply
                  0
                  • H honey the codewitch

                    I don't think I understand the question? The way I'm interpreting it doesn't make sense, but I can't figure it out. The way I'm reading it suggests that AI has been around for the whole of human history :~ but I know that's not what you're saying.

                    Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                    D Offline
                    D Offline
                    Daniel Pfeffer
                    wrote on last edited by
                    #21

                    Humans evolved, then they built AIs. The AIs eventually take over, and keep humans only so they can add some randomness into the AIs' models. Isaac Asimov wrote a good short story on a similar theme, The Last Answer. It's not as well-known as his The Last Question, but worth reading IMO.

                    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                    1 Reply Last reply
                    0
                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                      Have you tested it? Any conclusions?

                      Quote:

                      Did you know that research shows developers who use GitHub Copilot complete tasks 2X faster compared to benchmarks? Plus, the mental energy they save helps them feel more satisfied and have more fun with their work.

                      That's from an email I received from GitHub (MS)... To be honest I can't say anythin good about Copilot - all 5 times I asked a question it bomarded me with total nonsence (and not working, and mostly not even compiling) code solutions, meanwhile not paying attention to the details but hanging on the recognized keywords (like picking 'working' from 'not working')... However, I will form a firm oppinion after at least 50 times of using it...

                      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                      A Offline
                      A Offline
                      Anders Kallin
                      wrote on last edited by
                      #22

                      I've used it for more than a year now, it's really helpful in writing boilerplate code, a really good auto-complete. That is pretty much what I use it for.

                      1 Reply Last reply
                      0
                      • J Jacquers

                        I've found it to save some time with autocomplete when you have an existing example in the code to work from and it's a repetitive task. E.g. public void IsNumberEven(int number) { if (number == 0) return true; if number == 1) return false; if number == 2) return true; // copilot will do well with autocomplete here } :P

                        E Offline
                        E Offline
                        englebart
                        wrote on last edited by
                        #23

                        I am thinking it could save some typing by using recursion and adding or subtracting 2 on each call! Start posting multiple instances of cr@p like that on public repos and see how long it takes to suggest that…

                        1 Reply Last reply
                        0
                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                          Have you tested it? Any conclusions?

                          Quote:

                          Did you know that research shows developers who use GitHub Copilot complete tasks 2X faster compared to benchmarks? Plus, the mental energy they save helps them feel more satisfied and have more fun with their work.

                          That's from an email I received from GitHub (MS)... To be honest I can't say anythin good about Copilot - all 5 times I asked a question it bomarded me with total nonsence (and not working, and mostly not even compiling) code solutions, meanwhile not paying attention to the details but hanging on the recognized keywords (like picking 'working' from 'not working')... However, I will form a firm oppinion after at least 50 times of using it...

                          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                          D Offline
                          D Offline
                          Dale Barnard
                          wrote on last edited by
                          #24

                          I was slow to realize the benefits of it for C++. Recently, I needed to wrap a complicated templated class (CUDA Thrust host_vector and some others), and I asked the GitHub Copilot chat to generate wrappers using the private-implementation pattern (pimpl pattern). It gave me a fantastic start to it, throwing in the right include files. It did not make wrappers for 100% of it, but I was able to fill in the missing pieces easily enough. In fact, its inline suggestions in Visual Studio 2022 often saved me a whole bunch of typing. Once it saw that I was repeating a pattern (wrapping a class using the pimpl pattern), the inline suggestions saved me typing boiler-plate stuff for levels of indirection and such. Other useful things I have asked it are to write me a CUDA algorithm that does something pretty specific. Sooo useful. However, the Windows Copilot (free) seems similarly capable as long as it does not need to see your code. GitHub Copilot knows how you like to name your identifiers (m_width_meters vs m_width_pixels, for example). Those little touches have got me hooked. If I am confused about how to invoke a C++ standard-library function, I ask for an example program. Am I twice as productive? No. But I'm hooked.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups