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.
  • codiunicorn@programming.devC This user is from outside of this forum
    codiunicorn@programming.devC This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1
    This post did not contain any content.
    C I J M dumnezero@piefed.socialD 23 Replies Last reply
    1473
    • codiunicorn@programming.devC [email protected]
      This post did not contain any content.
      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]
      #2

      The image is taken from Zhihu, a Chinese Quora-like site.

      The prompt is talking about give a design of a certain app, and the response seems to talk about some suggested pages. So it doesn't seem to reflect the text.

      But this in general aligns with my experience coding with llm. I was trying to upgrade my eslint from 8 to 9, and ask chatgpt to convert my eslint file, and it proceed to spit out complete garbage.

      I thought this would be a good task for llm because eslint config is very common and well-documented, and the transformation is very mechanical, but it just cannot do it. So I proceed to read the documents and finished the migration in a couple hour...

      30p87@feddit.org3 mudman@fedia.ioM trickdacy@lemmy.worldT C P 5 Replies Last reply
      51
      • codiunicorn@programming.devC [email protected]
        This post did not contain any content.
        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
        #3

        This has beeny experience as well. It keeps emphasizing "beauty" and keeps missing "correctness"

        match@pawb.socialM K Z 3 Replies Last reply
        12
        • codiunicorn@programming.devC [email protected]
          This post did not contain any content.
          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
          #4

          Big Beautiful Code

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

            The image is taken from Zhihu, a Chinese Quora-like site.

            The prompt is talking about give a design of a certain app, and the response seems to talk about some suggested pages. So it doesn't seem to reflect the text.

            But this in general aligns with my experience coding with llm. I was trying to upgrade my eslint from 8 to 9, and ask chatgpt to convert my eslint file, and it proceed to spit out complete garbage.

            I thought this would be a good task for llm because eslint config is very common and well-documented, and the transformation is very mechanical, but it just cannot do it. So I proceed to read the documents and finished the migration in a couple hour...

            30p87@feddit.org3 This user is from outside of this forum
            30p87@feddit.org3 This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            I asked ChatGPT with help about bare metal 32-bit ARM (For the Pi Zero W) C/ASM, emulated in QEMU for testing, and after the third iteration of "use printf for output" -> "there's no printf with bare metal as target" -> "use solution X" -> "doesn't work" -> "ude printf for output" ... I had enough.

            bjoern_tantau@swg-empire.deB P W scrubbles@poptalk.scrubbles.techS L 7 Replies Last reply
            26
            • I [email protected]

              This has beeny experience as well. It keeps emphasizing "beauty" and keeps missing "correctness"

              match@pawb.socialM This user is from outside of this forum
              match@pawb.socialM This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              llms are systems that output human-readable natural language answers, not true answers

              G 1 Reply Last reply
              13
              • codiunicorn@programming.devC [email protected]
                This post did not contain any content.
                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
                #7

                Code that does not work is just text.

                galoisghost@aussie.zoneG M M alk@sh.itjust.worksA 4 Replies Last reply
                141
                • J [email protected]

                  Big Beautiful Code

                  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
                  #8

                  My uncle. Very smart very neuronal. He knows the entire Internet, can you imagine? the entire internet. Like the mails of Crooked Hillary Clinton, that crook. You know what stands in that Mails? my uncle knows. He makes the best code. The most beautiful code. No one has ever seen code like it, but for him, he's a genius, like i am, i have inherited all his genius genes. It is very easy. He makes the best code. Sometimes he calls me and asks me: you are even smarter than i am. Can you look at my code?

                  C A 2 Replies Last reply
                  26
                  • C [email protected]

                    The image is taken from Zhihu, a Chinese Quora-like site.

                    The prompt is talking about give a design of a certain app, and the response seems to talk about some suggested pages. So it doesn't seem to reflect the text.

                    But this in general aligns with my experience coding with llm. I was trying to upgrade my eslint from 8 to 9, and ask chatgpt to convert my eslint file, and it proceed to spit out complete garbage.

                    I thought this would be a good task for llm because eslint config is very common and well-documented, and the transformation is very mechanical, but it just cannot do it. So I proceed to read the documents and finished the migration in a couple hour...

                    mudman@fedia.ioM This user is from outside of this forum
                    mudman@fedia.ioM This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #9

                    It's pretty random in terms of what is or isn't doable.

                    For me it's a big performance booster because I genuinely suck at coding and don't do too much complex stuff. As a "clean up my syntax" and a "what am I missing here" tool it helps, or at least helps in figuring out what I'm doing wrong so I can look in the right place for the correct answer on something that seemed inscrutable at a glance. I certainly can do some things with a local LLM I couldn't do without one (or at least without getting berated by some online dick who doesn't think he has time to give you an answer but sure has time to set you on a path towards self-discovery).

                    How much of a benefit it is for a professional I couldn't tell. I mean, definitely not a replacement. Maybe helping read something old or poorly commented fast? Redundant tasks on very commonplace mainstream languages and tasks?

                    I don't think it's useless, but if you ask it to do something by itself you can't trust that it'll work without singificant additional effort.

                    O 1 Reply Last reply
                    6
                    • I [email protected]

                      This has beeny experience as well. It keeps emphasizing "beauty" and keeps missing "correctness"

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

                      So its 50% better than my code?

                      I 1 Reply Last reply
                      1
                      • M [email protected]

                        Code that does not work is just text.

                        galoisghost@aussie.zoneG This user is from outside of this forum
                        galoisghost@aussie.zoneG This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #11

                        I’ve never thought of it that way. I’m going to add copy writer to my resume.

                        M M 2 Replies Last reply
                        84
                        • codiunicorn@programming.devC [email protected]
                          This post did not contain any content.
                          dumnezero@piefed.socialD This user is from outside of this forum
                          dumnezero@piefed.socialD This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #12

                          Try to get one of these LLMs to update a package.json.

                          trickdacy@lemmy.worldT B 2 Replies Last reply
                          3
                          • 30p87@feddit.org3 [email protected]

                            I asked ChatGPT with help about bare metal 32-bit ARM (For the Pi Zero W) C/ASM, emulated in QEMU for testing, and after the third iteration of "use printf for output" -> "there's no printf with bare metal as target" -> "use solution X" -> "doesn't work" -> "ude printf for output" ... I had enough.

                            bjoern_tantau@swg-empire.deB This user is from outside of this forum
                            bjoern_tantau@swg-empire.deB This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #13

                            I used ChatGPT to help me make a package with SUSE's Open Build Service. It was actually quite good. Was pulling my hair out for a while until I noticed that the project I wanted to build had changes URLs and I was using an outdated one.

                            In the end I just had to get one last detail right. And then my ChatGPT 4 allowance dried up and they dropped me back down to 3 and it couldn't do anything. So I had to use my own brain, ugh.

                            N 1 Reply Last reply
                            7
                            • mudman@fedia.ioM [email protected]

                              It's pretty random in terms of what is or isn't doable.

                              For me it's a big performance booster because I genuinely suck at coding and don't do too much complex stuff. As a "clean up my syntax" and a "what am I missing here" tool it helps, or at least helps in figuring out what I'm doing wrong so I can look in the right place for the correct answer on something that seemed inscrutable at a glance. I certainly can do some things with a local LLM I couldn't do without one (or at least without getting berated by some online dick who doesn't think he has time to give you an answer but sure has time to set you on a path towards self-discovery).

                              How much of a benefit it is for a professional I couldn't tell. I mean, definitely not a replacement. Maybe helping read something old or poorly commented fast? Redundant tasks on very commonplace mainstream languages and tasks?

                              I don't think it's useless, but if you ask it to do something by itself you can't trust that it'll work without singificant additional effort.

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

                              A lot of words to just say vibe coding

                              1 Reply Last reply
                              8
                              • S [email protected]

                                My uncle. Very smart very neuronal. He knows the entire Internet, can you imagine? the entire internet. Like the mails of Crooked Hillary Clinton, that crook. You know what stands in that Mails? my uncle knows. He makes the best code. The most beautiful code. No one has ever seen code like it, but for him, he's a genius, like i am, i have inherited all his genius genes. It is very easy. He makes the best code. Sometimes he calls me and asks me: you are even smarter than i am. Can you look at my code?

                                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
                                #15

                                All people say it. Tremendous code. All the experts said "No, generating formatted random text is not working code" but we did it.

                                1 Reply Last reply
                                3
                                • I [email protected]

                                  This has beeny experience as well. It keeps emphasizing "beauty" and keeps missing "correctness"

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

                                  It generates an answer that looks correct. Actual correctness is accidental. That's how you wind up with documents with references that don't exist, it just knows what references look like.

                                  spankmonkey@lemmy.worldS 1 Reply Last reply
                                  7
                                  • 30p87@feddit.org3 [email protected]

                                    I asked ChatGPT with help about bare metal 32-bit ARM (For the Pi Zero W) C/ASM, emulated in QEMU for testing, and after the third iteration of "use printf for output" -> "there's no printf with bare metal as target" -> "use solution X" -> "doesn't work" -> "ude printf for output" ... I had enough.

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

                                    Sounds like it's perfectly replicated the help forums it was trained on.

                                    1 Reply Last reply
                                    24
                                    • M [email protected]

                                      Code that does not work is just text.

                                      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
                                      #18

                                      No the spell just fizzled. In my experience it happens far less often if you start with an Abra kabara and end it with an Alakazam!

                                      U grrgyle@slrpnk.netG 2 Replies Last reply
                                      15
                                      • dumnezero@piefed.socialD [email protected]

                                        Try to get one of these LLMs to update a package.json.

                                        trickdacy@lemmy.worldT This user is from outside of this forum
                                        trickdacy@lemmy.worldT This user is from outside of this forum
                                        [email protected]
                                        wrote on last edited by
                                        #19

                                        Define "update"

                                        1 Reply Last reply
                                        2
                                        • Z [email protected]

                                          It generates an answer that looks correct. Actual correctness is accidental. That's how you wind up with documents with references that don't exist, it just knows what references look like.

                                          spankmonkey@lemmy.worldS This user is from outside of this forum
                                          spankmonkey@lemmy.worldS This user is from outside of this forum
                                          [email protected]
                                          wrote on last edited by [email protected]
                                          #20

                                          It doesn't 'know' anything. It is glorified text autocomplete.

                                          The current AI is intelligent like how Hoverboards hover.

                                          E M C 3 Replies Last reply
                                          7
                                          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