• fruitcantfly@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    7 hours 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
      3
      ·
      6 hours 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.