• molehill_siesta@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    16 天前

    When you TDD, you are supposed to write the minimum possible change that would result in your new test passing. A slop machine is going to try to write code that looks like the end goal of the application you’re writing. Which means it will have tons of untested unexamined side effects.

    Also, of course, while you’re human-writing the code for TDD you’re supposed to be thinking about how everything currently works and what edge cases might exist, etc, that is supposed to guide you towards the next best test to write.

    • takeda@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      15 天前

      Well, I heard about it but didn’t try, and it sounded plausible.

      What you are saying sounds like that’s where the gotcha is.