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
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. the beautiful code

the beautiful code

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
226 Posts 135 Posters 0 Views
  • 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.
  • Z [email protected]

    LMFAO. He's right about your ego.

    G This user is from outside of this forum
    G This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #160

    thank you for your input obvious troll account.

    Z 1 Reply Last reply
    0
    • P [email protected]

      To be fair, if I wrote 3000 new lines of code in one shot, it probably wouldn’t run either.

      LLMs are good for simple bits of logic under around 200 lines of code, or things that are strictly boilerplate. People who are trying to force it to do things beyond that are just being silly.

      iavicenna@lemmy.worldI This user is from outside of this forum
      iavicenna@lemmy.worldI This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #161

      I am on you with this one. It is also very helpful in argument heavy libraries like plotly. If I ask a simple question like "in plotly how do I do this and that to the xaxis" etc it generally gives correct answers, saving me having to do internet research for 5-10 minutes or read documentations for functions with 1000 inputs. I even managed to get it to render a simple scene of cloud of points with some interactivity in 3js after about 30 minutes of back and forth. Not knowing much javascript, that would take me at least a couple hours. So yeah it can be useful as an assistant to someone who already knows coding (so the person can vet and debug the code).

      Though if you weigh pros and cons of how LLMs are used (tons of fake internet garbage, tons of energy used, very convincing disinformation bots), I am not convinced benefits are worth the damages.

      S 1 Reply Last reply
      1
      • spankmonkey@lemmy.worldS [email protected]

        Acting like the entire history of the philosophy of knowledge is just some attempt make “knowing” seem more nuanced is extremely arrogant.

        That is not what I said. In fact, it is the opposite of what I said.

        I said that treating the discussion of LLMs as a philosophical one is giving 'knowing' in the discussion of LLMs more nuance than it deserves.

        I This user is from outside of this forum
        I This user is from outside of this forum
        [email protected]
        wrote on last edited by [email protected]
        #162

        I never said discussing LLMs was itself philosophical. I said that as soon as you ask the question "but does it really know?" then you are immediately entering the territory of the theory of knowledge, whether you're talking about humans, about dogs, about bees, or, yes, about AI.

        1 Reply Last reply
        0
        • X [email protected]

          All programs can be written with on less line of code.
          All programs have at least one bug.

          By the logical consequences of these axioms every program can be reduced to one line of code - that doesn't work.

          One day AI will get there.

          N This user is from outside of this forum
          N This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #163

          The ideal code is no code at all

          R 1 Reply Last reply
          4
          • captain_aggravated@sh.itjust.worksC [email protected]

            Well I've got the name for my autobiography now.

            runeko@programming.devR This user is from outside of this forum
            runeko@programming.devR This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #164

            "Specifically Annoying" or "Plausible Bullshit"? I'd buy the latter.

            1 Reply Last reply
            0
            • M [email protected]

              This is a philosophical discussion and I doubt you are educated or experienced enough to contribute anything worthwhile to it.

              I This user is from outside of this forum
              I This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #165

              Dude.. the point is I don't have to be. I just have to be human and use it. If it sucks, I am gonna say that.

              1 Reply Last reply
              0
              • K [email protected]

                So its 50% better than my code?

                I This user is from outside of this forum
                I This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #166

                If the code cannot uphold correctness, it is 0% better than your code.

                1 Reply Last reply
                0
                • 1984@lemmy.today1 [email protected]

                  Its like having a junior developer with a world of confidence just change shit and spend hours breaking things and trying to fix them, while we pay big tech for the privilege of watching the chaos.

                  I asked chat gpt to give me a simple squid proxy config today that blocks everything except https. It confidently gave me one but of course it didnt work. It let through http and despite many attempts to get a working config that did that, it just failed.

                  So yeah in the end i have to learn squid syntax anyway, which i guess is fine, but I spent hours trying to get a working config because we pay for chat gpt to do exactly that....

                  N This user is from outside of this forum
                  N This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #167

                  I have a friend who swears by llms, he sais it helps him a lot. I once watched him do it, and the experience was exactly the same you described. He wasted couple of hours fighting with bullshit generator just to do everything himself anyway. I asked him wouldn't it be better to not waste the time, but he didn't really saw the problem, he gaslit himself that fighting with the idiot machine helped.

                  1 Reply Last reply
                  0
                  • A [email protected]

                    Just to boast my old timer credentials.

                    There is an utility program in IBM’s mainframe operating system, z/OS, that has been there since the 60s.

                    It has just one assembly code instruction: a BR 14, which means basically ‘return’.

                    The first version was bugged and IBM had to issue a PTF (patch) to fix it.

                    D This user is from outside of this forum
                    D This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #168

                    Okay, you can't just drop that bombshell without elaborating. What sort of bug could exist in a program which contains a single return instruction?!?

                    A 1 Reply Last reply
                    3
                    • codiunicorn@programming.devC [email protected]
                      This post did not contain any content.
                      B This user is from outside of this forum
                      B This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #169

                      Write tests and run them, reiterate until all tests pass.

                      C 1 Reply Last reply
                      7
                      • S [email protected]

                        But not just text

                        Also that's not converse to what the parent comment said

                        M This user is from outside of this forum
                        M This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #170

                        Did you want to converse about conversing?

                        1 Reply Last reply
                        1
                        • A [email protected]

                          Just to boast my old timer credentials.

                          There is an utility program in IBM’s mainframe operating system, z/OS, that has been there since the 60s.

                          It has just one assembly code instruction: a BR 14, which means basically ‘return’.

                          The first version was bugged and IBM had to issue a PTF (patch) to fix it.

                          umbraroze@slrpnk.netU This user is from outside of this forum
                          umbraroze@slrpnk.netU This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #171

                          Reminds me of how in some old Unix system, /bin/true was a shell script.

                          ...well, if it needs to just be a program that returns 0, that's a reasonable thing to do. An empty shell script returns 0.

                          Of course, since this was an old proprietary Unix system, the shell script had a giant header comment that said this is proprietary information and if you disclose this the lawyers will come at ya like a ton of bricks. ...never mind that this was a program that literally does nothing.

                          1 Reply Last reply
                          0
                          • B [email protected]

                            Write tests and run them, reiterate until all tests pass.

                            C This user is from outside of this forum
                            C This user is from outside of this forum
                            [email protected]
                            wrote on last edited by [email protected]
                            #172

                            That doesn't sound viby to me, though. You expect people to actually code? /s

                            A 1 Reply Last reply
                            7
                            • K [email protected]

                              And that's what happens when you spend a trillion dollars on an autocomplete: amazing at making things look like whatever it's imitating, but with zero understanding of why the original looked that way.

                              C This user is from outside of this forum
                              C This user is from outside of this forum
                              [email protected]
                              wrote on last edited by [email protected]
                              #173

                              I mean, there's about a billion ways it's been shown to have actual coherent originality at this point, and so it must have understanding of some kind. That's how I know I and other humans have understanding, after all.

                              What it's not is aligned to care about anything other than making plausible-looking text.

                              J 1 Reply Last reply
                              3
                              • O [email protected]

                                well, it only took 2 years to go from the cursed will smith eating spaghetti video to veo3 which can make completely lifelike videos with audio. so who knows what the future holds

                                kazerniel@lemmy.worldK This user is from outside of this forum
                                kazerniel@lemmy.worldK This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #174

                                cursed will smith eating spaghetti video

                                oh gods, why did I look it up

                                1 Reply Last reply
                                0
                                • D [email protected]

                                  Okay, you can't just drop that bombshell without elaborating. What sort of bug could exist in a program which contains a single return instruction?!?

                                  A This user is from outside of this forum
                                  A This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #175

                                  It didn’t clear the return code. In mainframe jobs, successful executions are expected to return zero (in the machine R15 register).

                                  So in this case fixing the bug required to add an instruction instead of removing one.

                                  1 Reply Last reply
                                  0
                                  • C [email protected]

                                    I mean, there's about a billion ways it's been shown to have actual coherent originality at this point, and so it must have understanding of some kind. That's how I know I and other humans have understanding, after all.

                                    What it's not is aligned to care about anything other than making plausible-looking text.

                                    J This user is from outside of this forum
                                    J This user is from outside of this forum
                                    [email protected]
                                    wrote on last edited by
                                    #176

                                    Coherent originality does not point to the machine’s understanding; the human is the one capable of finding a result coherent and weighting their program to produce more results in that vein.

                                    Your brain does not function in the same way as an artificial neural network, nor are they even in the same neighborhood of capability. John Carmack estimates the brain to be four orders of magnitude more efficient in its thinking; Andrej Karpathy says six.

                                    And none of these tech companies even pretend that they’ve invented a caring machine that they just haven’t inspired yet. Don’t ascribe further moral and intellectual capabilities to server racks than do the people who advertise them.

                                    C 1 Reply Last reply
                                    6
                                    • isveryloud@lemmy.caI [email protected]

                                      Yes, all of JetBrains' tools handle project-wide renames practically perfectly, even in weirder things like Angular projects where templates may reference variables.

                                      A This user is from outside of this forum
                                      A This user is from outside of this forum
                                      [email protected]
                                      wrote on last edited by
                                      #177

                                      Just be carerul when refactoring variable names in doc comments, I've seen some weird stuff happen there

                                      1 Reply Last reply
                                      1
                                      • iavicenna@lemmy.worldI [email protected]

                                        I am on you with this one. It is also very helpful in argument heavy libraries like plotly. If I ask a simple question like "in plotly how do I do this and that to the xaxis" etc it generally gives correct answers, saving me having to do internet research for 5-10 minutes or read documentations for functions with 1000 inputs. I even managed to get it to render a simple scene of cloud of points with some interactivity in 3js after about 30 minutes of back and forth. Not knowing much javascript, that would take me at least a couple hours. So yeah it can be useful as an assistant to someone who already knows coding (so the person can vet and debug the code).

                                        Though if you weigh pros and cons of how LLMs are used (tons of fake internet garbage, tons of energy used, very convincing disinformation bots), I am not convinced benefits are worth the damages.

                                        S This user is from outside of this forum
                                        S This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #178

                                        Why do you want AI to save you for learning and understanding the tools you use?

                                        iavicenna@lemmy.worldI 1 Reply Last reply
                                        0
                                        • C [email protected]

                                          That doesn't sound viby to me, though. You expect people to actually code? /s

                                          A This user is from outside of this forum
                                          A This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by
                                          #179

                                          You can vibe code the tests too y'know

                                          C N 2 Replies Last reply
                                          5
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

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