• oce 🐆@jlai.lu
    link
    fedilink
    arrow-up
    0
    ·
    11 months ago

    That supposes to have a clear idea of what you’re going to code. Otherwise, it’s a lot of time wasted to constantly rewrite both the code and tests as you better understand how you’re going to solve the task while trying. I guess it works for very narrowed tasks rather than opened problems.

    • homoludens@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      11 months ago

      constantly rewrite both the code and tests as you better understand how you’re going to solve the task while trying

      The tests should be decoupled from the “how” though. It’s obviously not possible to completely decouple them, but if you’re “constantly” rewriting, something is going wrong.

      Brilliant talk on that topic (with slight audio problems): https://www.youtube.com/watch?v=EZ05e7EMOLM