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.
  • 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
                      • 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...

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

                        I wouldn't say it's accurate that this was a "mechanical" upgrade, having done it a few times. They even have a migration tool which you'd think could fully do the upgrade but out of the probably 4-5 projects I've upgraded, the migration tool always produced a config that errored and needed several obscure manual changes to get working. All that to say it seems like a particularly bad candidate for llms

                        scrubbles@poptalk.scrubbles.techS C 2 Replies Last reply
                        3
                        • V This user is from outside of this forum
                          V This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #22

                          It's not much use with a professional codebase as of now, and I say this as a big proponent of learning FOSS AI to stay ahead of the corpocunts

                          1 Reply Last reply
                          2
                          • M [email protected]

                            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 This user is from outside of this forum
                            U This user is from outside of this forum
                            [email protected]
                            wrote on last edited by [email protected]
                            #23

                            Yeah, the Abra kabara init and Alakazam cleanup are an important part, specially until you have become good enough to configure your own init.


                            There is an alternative init, Abra Kadabra, which automatically adds a cleanup and some general fixes when it detects the end of the spell.

                            1 Reply Last reply
                            8
                            • 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.

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

                              Did it at least try puts?

                              1 Reply Last reply
                              0
                              • codiunicorn@programming.devC [email protected]
                                This post did not contain any content.
                                haui_lemmy@lemmy.giftedmc.comH This user is from outside of this forum
                                haui_lemmy@lemmy.giftedmc.comH This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #25

                                Welp. Its actually very in line with the late stage capitalist system. All polish, no innovation.

                                A 1 Reply Last reply
                                35
                                • W This user is from outside of this forum
                                  W This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #26

                                  It catches things like spelling errors in variable names, does good autocomplete, and it’s useful to have it look through a file before committing it and creating a pull request.

                                  It’s very useful for throwaway work like writing scripts and automations.

                                  It’s useful not but a 10x multiplier like all the CEOs claim it is.

                                  mudman@fedia.ioM 1 Reply Last reply
                                  3
                                  • spankmonkey@lemmy.worldS [email protected]

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

                                    The current AI is intelligent like how Hoverboards hover.

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

                                    Llms are the smartest thing ever on subjects you have no fucking clue on.
                                    On subjects you have at least 1 year experience with it suddenly becomes the dumbest shit youve ever seen.

                                    1 Reply Last reply
                                    4
                                    • W [email protected]

                                      It catches things like spelling errors in variable names, does good autocomplete, and it’s useful to have it look through a file before committing it and creating a pull request.

                                      It’s very useful for throwaway work like writing scripts and automations.

                                      It’s useful not but a 10x multiplier like all the CEOs claim it is.

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

                                      Fully agreed. Everybody is betting it'll get there eventually and trying to jockey for position being ahead of the pack, but at the moment there isn't any guarantee that it'll get to where the corpos are assuming it already is.

                                      Which is not the same as not having better autocomplete/spellcheck/"hey, how do I format this specific thing" tools.

                                      W 1 Reply Last reply
                                      1
                                      • 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
                                        #29

                                        This weekend I successfully used Claude to add three features in a Rust utility I had wanted for a couple years. I had opened issue requests, but no else volunteered. I had tried learning Rust, Wayland and GTK to do it myself, but the docs at the time weren’t great and the learning curve was steep. But Claude figured it all out pretty quick.

                                        T 1 Reply Last reply
                                        19
                                        • match@pawb.socialM [email protected]

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

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

                                          And a good part of the time, the answers can often have a… subtly loose relationship with truth

                                          1 Reply Last reply
                                          2
                                          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