• TwilightKiddy@scribe.disroot.org
          link
          fedilink
          English
          arrow-up
          10
          ·
          1 month ago

          If you are generating tests with an LLM, it’s not deterministic.

          Also, have you actually read anything an LLM wrote that’s longer than a hundered words? It’s usually immediately obvious. In the open source world things I keep seeing are exchanges like this one. And Niri is a fairly good case with it’s maintainer actually reading the PRs and catching all the bullshit that an LLM spits out. Very often nowadays people will also do reviews with an LLM and this sort of stuff will just accumulate in the codebase with nobody to reject it.

          But even if it was as useful as big tech paints it to be, I’ll always be against using it based purely on morals. There is an enormous number of issues in that regard, most importatnly LLMs literally kill people both directly and indirectly. Condoning the adoption of this technology is either being ignorant or misanthropic.

            • TwilightKiddy@scribe.disroot.org
              link
              fedilink
              English
              arrow-up
              8
              ·
              1 month ago

              Why the are you getting more text than you can physically review at your job? That sounds like a recipe for poor reviews. How are you sure LLMs are not missing anything if nobody actually has the time to read through all the text? Why does the text that gets to a developer contain logical mistakes in the first place? Back at my last job we had people assigned to collecting feature requests, talk them through with whoever wanted the feature implemented and produce proper specifications that developers would implement without wasting time on specifications containing garbage.

              As does nearly every activity of life, both in human society and the natural world.

              Yea, all people who drank water died. Not a very good argument. Most things don’t have a mental disorder named after them. If I leave a webpage with a calculator running unattended it won’t magically persuade a random visitor into commiting suicide. Webpages with LLM-powered chatbots are doing just that. You may choose to neglect it, but to me it sounds like adding lead to your gasoline. Yea, your car runs better. Are you sure it’s worth it, though?

                • TwilightKiddy@scribe.disroot.org
                  link
                  fedilink
                  English
                  arrow-up
                  6
                  ·
                  1 month ago

                  I’m sorry you are working in such conditions, I hope you get better management that actually understands how much data one person can process.

                  I’m not sure how your story is at all relevant to what I said.

                  I don’t have a driver’s license, I don’t live in the US, I don’t need one. The lead in gasoline example was just the first thing that came to mind that fit a “technology that is profitable and useful, but kills people” description. Please pay attention to the road while driving instead of perfoming mental math exercises.

                  I would also like to ask you to think about what exactly you are arguing for right now, as I’m starting to think that our understanding of the value of human life differs quite a bit.

                • tyler@programming.dev
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 month ago

                  Sounds nice. We’ve got ~500 employees at our “site” (which is now distributed across 3+ states with remote workers), of those, about 8 do software development, so developers end up doing virtually all of the translation of customer “needs” to specifications / requirements. We also have a marketing department that changes their mind about twice as fast as the product development / delivery cycle.

                  you’re acting like the solution here is LLMs, when the solution is just hiring more people. LLMs aren’t ‘solving’ anything, they’re just masking the problem and allowing the millionaires at the top to keep making tons of money.

            • tyler@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              1 month ago

              Simple questions to an LLM like: “review this procedure, is it internally self consistent” will find issues, real issues - usually minor - but undeniable when you read the review, the problem it describes is absolutely present in the document, page 14 says “X” and page 23 says “not X” and the context is basically identical - so which are we really supposed to do: “X” or “not X”? Well, that depends. Depends on what? Additional context and detail that the already too long 50 page procedure doesn’t address.

              lol and I find issues like this in LLM output of only 1 or 2 pages. LLMs can’t even be consistent across paragraphs, much less hundreds of pages of context window. what an insane claim.

                • tyler@programming.dev
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  1 month ago

                  Asking LLMs to find flaws, then verifying those flaws are real, is more powerful than just looking for flaws without the tool.

                  No it isn’t. Your example is so contrived. What was happening before these documents were reviewed by LLMs? Were the lines that were incorrect causing issues? If so then a human would have found it years ago. If not then they weren’t causing problems and all the LLM has done is invent work that a human now needs to clean up. The LLM didn’t solve a problem, it created a new one!

                  Now you need to pay a human to make sure that the LLM isn’t actually making things worse, which wasn’t even a job before! Your company that won’t pay a human to review the document in the first place is now needing more humans to clean up a mess that wasn’t a problem in the first place.

      • fruitcantfly@programming.dev
        link
        fedilink
        arrow-up
        1
        arrow-down
        4
        ·
        1 month ago

        But you really should be writing those tests regardless of whether or not you or an LLM ends up writing the actual code. That helps ensure that the code actually does what you think it does, and prevents bugs or unintended changes in behavior from sneaking in later when something changes

        • TwilightKiddy@scribe.disroot.org
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 month ago

          Well, depends. My thousand-line pet project does not need any tests, it needs to be feature complete and never touched again.

          Bigger projects are usually ones where multiple people are contributing and having code that practically nobody wrote there is a huge problem on it’s own in my opinion, even if it passes a number of tests. Good tests themselves are usually harder to write than the code they are testing, I am not sure if delegating the actual fun part of development to an LLM and doing “chores” manually is a good idea.

    • FaceDeer@fedia.io
      link
      fedilink
      arrow-up
      5
      arrow-down
      7
      ·
      1 month ago

      Indeed, my code has never been more rich in unit tests now that coding assistants make them so easy to add. If the coding assistant subsequently does something weird that changes program behaviour it knows immediately.

        • FaceDeer@fedia.io
          link
          fedilink
          arrow-up
          2
          arrow-down
          5
          ·
          1 month ago

          They check to make sure that the code continues producing the expected results. For example if I had some code that added up numbers, I might have a unit test that calls that function with the parameters “2” and “2” and checks to make sure the result is “4”. If something changes that makes it start returning something else then a flag is immediately raised.

          • resipsaloquitur@lemmy.cafe
            link
            fedilink
            English
            arrow-up
            7
            arrow-down
            3
            ·
            1 month ago

            Are these tests written by AI? Have you reviewed the tests? Do they cover all code paths and all the possible inputs and outputs? Do the tests have requirements cited (traceability)?

              • resipsaloquitur@lemmy.cafe
                link
                fedilink
                English
                arrow-up
                8
                arrow-down
                2
                ·
                1 month ago

                Absolutely not. In a world where hallucinating machines are writing code, humans should be writing the tests at a bare minimum.

                AI writing code to pass tests written by AI will get people killed.

                  • resipsaloquitur@lemmy.cafe
                    link
                    fedilink
                    English
                    arrow-up
                    6
                    ·
                    1 month ago

                    Boeing’s executives had motivated reasoning to skimp on actual engineering and give the results the exec wanted over the objections of actual engineers.

                    Sound familiar?

                    Frankly, no. LLMs are so sychophantic, there’s little evidence they would have flagged a warning that what he executives wanted was dangerous.

                    And no, LLMs are not just some tool. Never in human history has a hammer given it’s users psychosis.

                    This is a completely nonsense argument.

                  • unknownuserunknownlocation@kbin.earth
                    link
                    fedilink
                    arrow-up
                    3
                    ·
                    1 month ago

                    The max issue on the Boeing planes wasn’t a software issue in that sense. The software actually worked as intended. Boeing just hid the fact that the software existed and made it purposefully hard to override, giving pilots quite the surprise when the plane didn’t operate the way they expected, especially when the angle of attack sensor wasn’t working.