Its definitely a bad idea writing new code that builds up on your old code, that has not been tested properly, because you quickly have to start debugging multiple layer is code at once.

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    No project is too small for tests

    Tests double as your documentation for your intent

    Take it from me who has 20+ years of personal projects behind me, the ones that I’ve kept around are typically the ones that have some form of test suite.

    It’s easy to build on something if you know you’re not breaking something in the process

    • da_cow (she/her)@feddit.orgOP
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Yeah of course I Am testing. I Am usually just not writing very extensive tests. I try to break it as much as possible with as little effort and try then to prevent it from breaking.

        • da_cow (she/her)@feddit.orgOP
          link
          fedilink
          arrow-up
          1
          ·
          16 hours ago

          From what I understand the difference between how I code and what has Ben described as TDD in this thread is, that I set up everything first and then try to think of ways people could break the code and then test these vases/try to prevent them.