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. To be fair...

To be fair...

Scheduled Pinned Locked Moved The Lounge
javascriptcomcode-review
21 Posts 14 Posters 0 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.
  • J jschell

    To be fair it is only JavaScript after all... How ChatGPT can rewrite and improve your existing code | ZDNET[^] (Link is from the CodeProject daily.) Makes me wonder what would happen if you attempted to paste a million line application into ChatGPT.

    C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #6

    So Improve means "condense it down" or "add back a line deliberately commented out". I feel like all this "pass it through GPT" is leading everyone in circles. It's absolutely doing a fantastic job of taking text (prose, code, whatever) and producing a version that best matches its training data and bias. It spits out great looking text and generates code that is either the most commonly found code for this text prompt, or the code it was trained to produce. This will just get better and better. But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting. Definitely good to start from something that's well structured and fix that, but let's put this in perspective. (and saying that, the fact it can even do this is mind blowing at a conceptual level, but disarmingly trivial at the mathematical level if you're OK with thinking trillion-parameter simultaneous equations are trivial. All in all a proper mind-bend).

    cheers Chris Maunder

    OriginalGriffO L O N 4 Replies Last reply
    0
    • C Chris Maunder

      So Improve means "condense it down" or "add back a line deliberately commented out". I feel like all this "pass it through GPT" is leading everyone in circles. It's absolutely doing a fantastic job of taking text (prose, code, whatever) and producing a version that best matches its training data and bias. It spits out great looking text and generates code that is either the most commonly found code for this text prompt, or the code it was trained to produce. This will just get better and better. But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting. Definitely good to start from something that's well structured and fix that, but let's put this in perspective. (and saying that, the fact it can even do this is mind blowing at a conceptual level, but disarmingly trivial at the mathematical level if you're OK with thinking trillion-parameter simultaneous equations are trivial. All in all a proper mind-bend).

      cheers Chris Maunder

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #7

      I'd agree - but I don't think our jobs / whole profession is at risk yet. It is likely affecting this site though: QA is well down on student question numbers, and that's probably them plagiarising ChatGPT code ...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      S 1 Reply Last reply
      0
      • J jschell

        To be fair it is only JavaScript after all... How ChatGPT can rewrite and improve your existing code | ZDNET[^] (Link is from the CodeProject daily.) Makes me wonder what would happen if you attempted to paste a million line application into ChatGPT.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #8

        MAJIKTHISE: ... we want this machine off, and we want it off now.

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          I'd agree - but I don't think our jobs / whole profession is at risk yet. It is likely affecting this site though: QA is well down on student question numbers, and that's probably them plagiarising ChatGPT code ...

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          S Offline
          S Offline
          Slacker007
          wrote on last edited by
          #9

          OriginalGriff wrote:

          plagiarising ChatGPT code

          but is it really plagiarizing? I don't think so. Unless we are now saying that ChatGPT is a sentient being.

          OriginalGriffO 1 Reply Last reply
          0
          • S Slacker007

            OriginalGriff wrote:

            plagiarising ChatGPT code

            but is it really plagiarizing? I don't think so. Unless we are now saying that ChatGPT is a sentient being.

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #10

            My definition of plagiarism is pretty simple: if you didn't write it, it's not original to you, and that's plagiarism unless you provide adequate references to the original source. Which you definitely don't do when you are too lazy to do your own homework. :-D

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            E Richard Andrew x64R 2 Replies Last reply
            0
            • OriginalGriffO OriginalGriff

              My definition of plagiarism is pretty simple: if you didn't write it, it's not original to you, and that's plagiarism unless you provide adequate references to the original source. Which you definitely don't do when you are too lazy to do your own homework. :-D

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              E Offline
              E Offline
              Espen Harlinn
              wrote on last edited by
              #11

              Quote:

              unless you provide adequate references to the original source.

              And the original source of something that ChatGPT generates is what? It is not ChatGPT... I hope we can agree that ChatGPT is not capable of any kind of thinking, and I imagine that in the near future we will have a number of similar solutions that generate contents that will be published on the net somewhere. My guess is that these solutions will start to learn from each other, and there will probably be some really weird results.

              Espen Harlinn Chief Architect - Seasurveillance AS The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague.Edsger W.Dijkstra

              1 Reply Last reply
              0
              • OriginalGriffO OriginalGriff

                My definition of plagiarism is pretty simple: if you didn't write it, it's not original to you, and that's plagiarism unless you provide adequate references to the original source. Which you definitely don't do when you are too lazy to do your own homework. :-D

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                Richard Andrew x64R Offline
                Richard Andrew x64R Offline
                Richard Andrew x64
                wrote on last edited by
                #12

                I didn't write the designer code that Visual Studio generates behind my C# forms. But does anyone doubt that I own the copyright to it?

                The difficult we do right away... ...the impossible takes slightly longer.

                D 1 Reply Last reply
                0
                • C Chris Maunder

                  So Improve means "condense it down" or "add back a line deliberately commented out". I feel like all this "pass it through GPT" is leading everyone in circles. It's absolutely doing a fantastic job of taking text (prose, code, whatever) and producing a version that best matches its training data and bias. It spits out great looking text and generates code that is either the most commonly found code for this text prompt, or the code it was trained to produce. This will just get better and better. But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting. Definitely good to start from something that's well structured and fix that, but let's put this in perspective. (and saying that, the fact it can even do this is mind blowing at a conceptual level, but disarmingly trivial at the mathematical level if you're OK with thinking trillion-parameter simultaneous equations are trivial. All in all a proper mind-bend).

                  cheers Chris Maunder

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #13

                  Until it can do a cost-benefit analysis, it may well write great code but may still be solving the wrong problem. I'm curious if it is of the "put as much as you can into one SQL statement" school of thought.

                  "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                  P 1 Reply Last reply
                  0
                  • L Lost User

                    Until it can do a cost-benefit analysis, it may well write great code but may still be solving the wrong problem. I'm curious if it is of the "put as much as you can into one SQL statement" school of thought.

                    "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #14

                    Ooohhhh the SQL I've been writing lately...

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      So Improve means "condense it down" or "add back a line deliberately commented out". I feel like all this "pass it through GPT" is leading everyone in circles. It's absolutely doing a fantastic job of taking text (prose, code, whatever) and producing a version that best matches its training data and bias. It spits out great looking text and generates code that is either the most commonly found code for this text prompt, or the code it was trained to produce. This will just get better and better. But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting. Definitely good to start from something that's well structured and fix that, but let's put this in perspective. (and saying that, the fact it can even do this is mind blowing at a conceptual level, but disarmingly trivial at the mathematical level if you're OK with thinking trillion-parameter simultaneous equations are trivial. All in all a proper mind-bend).

                      cheers Chris Maunder

                      O Offline
                      O Offline
                      ormonds
                      wrote on last edited by
                      #15

                      I've been using ChatGPT to help me learn how to write Chrome extensions. Just ask it to do what I want, then take the code and work out what it does. Useful way of learning. This could be used to learn anything, working out where it is wrong is part of the learning.

                      L 1 Reply Last reply
                      0
                      • C Chris Maunder

                        So Improve means "condense it down" or "add back a line deliberately commented out". I feel like all this "pass it through GPT" is leading everyone in circles. It's absolutely doing a fantastic job of taking text (prose, code, whatever) and producing a version that best matches its training data and bias. It spits out great looking text and generates code that is either the most commonly found code for this text prompt, or the code it was trained to produce. This will just get better and better. But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting. Definitely good to start from something that's well structured and fix that, but let's put this in perspective. (and saying that, the fact it can even do this is mind blowing at a conceptual level, but disarmingly trivial at the mathematical level if you're OK with thinking trillion-parameter simultaneous equations are trivial. All in all a proper mind-bend).

                        cheers Chris Maunder

                        N Offline
                        N Offline
                        Nelek
                        wrote on last edited by
                        #16

                        Chris Maunder wrote:

                        But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting.

                        I think that most people that know how to debug properly are not going to get ChatGPT code for production.

                        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                        C D 2 Replies Last reply
                        0
                        • N Nelek

                          Chris Maunder wrote:

                          But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting.

                          I think that most people that know how to debug properly are not going to get ChatGPT code for production.

                          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                          C Offline
                          C Offline
                          Chris Maunder
                          wrote on last edited by
                          #17

                          You'd think, right? ;)

                          cheers Chris Maunder

                          1 Reply Last reply
                          0
                          • Richard Andrew x64R Richard Andrew x64

                            I didn't write the designer code that Visual Studio generates behind my C# forms. But does anyone doubt that I own the copyright to it?

                            The difficult we do right away... ...the impossible takes slightly longer.

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

                            Richard Andrew x64 wrote:

                            But does anyone doubt that I own the copyright to it?

                            Well, Microsoft might. I'd read that license very carefully... :)

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

                            J 1 Reply Last reply
                            0
                            • N Nelek

                              Chris Maunder wrote:

                              But it is still about "most likely". Not "actually correct" and so we generate this great looking code and then spend all this time running around debugging and correcting.

                              I think that most people that know how to debug properly are not going to get ChatGPT code for production.

                              M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

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

                              Nelek wrote:

                              most people that know how to debug properly

                              There's the rub...

                              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
                              • O ormonds

                                I've been using ChatGPT to help me learn how to write Chrome extensions. Just ask it to do what I want, then take the code and work out what it does. Useful way of learning. This could be used to learn anything, working out where it is wrong is part of the learning.

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #20

                                It couldn't tell me how to order regiments in a brigade if they were of different sizes. In real life, they are not all 10 companies of 100 each; all the time. Especially during war. It will tell me everything else I already know.

                                "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                                1 Reply Last reply
                                0
                                • D Daniel Pfeffer

                                  Richard Andrew x64 wrote:

                                  But does anyone doubt that I own the copyright to it?

                                  Well, Microsoft might. I'd read that license very carefully... :)

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

                                  J Offline
                                  J Offline
                                  jschell
                                  wrote on last edited by
                                  #21

                                  Actually could even be worse than that. Someone might claim that because it came from VS that anyone (the competitors) should be able to use it. Which might even be supported by the license.

                                  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