Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
cm0002 ( cm0002@infosec.pub )  to Linux@programming.dev · 4 hours ago

Linus Torvalds shares his thoughts on Anti-AI coding rules

infosec.pub

message-square
26
link
fedilink
22

Linus Torvalds shares his thoughts on Anti-AI coding rules

infosec.pub

cm0002 ( cm0002@infosec.pub )  to Linux@programming.dev · 4 hours ago
message-square
26
link
fedilink
  • goatbeard ( goatbeard@beehaw.org ) 
    link
    fedilink
    arrow-up
    2
    ·
    1 hour ago

    You can add deterministic testing to AI output though?

    • TwilightKiddy ( TwilightKiddy@scribe.disroot.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      Wouldn’t it be just… writing code yourself? It’s just instead of writing what you want directly you are writing tests for it.

    • FaceDeer ( FaceDeer@fedia.io ) 
      link
      fedilink
      arrow-up
      1
      ·
      1 hour 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.

      • resipsaloquitur ( resipsaloquitur@lemmy.cafe ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        44 minutes ago

        What do the tests do?

        • FaceDeer ( FaceDeer@fedia.io ) 
          link
          fedilink
          arrow-up
          1
          ·
          38 minutes 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 ( resipsaloquitur@lemmy.cafe ) 
            link
            fedilink
            English
            arrow-up
            1
            ·
            12 minutes 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)?

Linux@programming.dev

linux@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@programming.dev

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

  • !linux_memes@programming.dev
  • !linuxphones@lemmy.ca
  • our Matrix group chat
  • !reactos@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 597 users / day
  • 730 users / week
  • 2.04K users / month
  • 5.56K users / 6 months
  • 125 local subscribers
  • 15.2K subscribers
  • 4.44K Posts
  • 23.3K Comments
  • Modlog
  • mods:
  • Ategon ( Ategon@programming.dev ) 
  • adr1an ( anzo@programming.dev ) 
  • dwraf_of_ignorance ( dwraf_of_ignorance@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code