News for hackers. Stuff that matters.
Re:I have complicated feelings about TDD by 0x457 on Thursday August 18, 2022 @01:26PM (#32512487)
The first test could be as simple as method signature check. Yes, you still have to make a design decision here, but you have to make it either way.
Re:I have complicated feelings about TDD by giantrobot on Thursday August 18, 2022 @02:03PM (#32512914)
Then you need to keep the test and signature in lock step. Your method signature is likely to change as the code evolves. I'm not arguing against tests but requiring them too early generates a lot of extra work.
Re:I have complicated feelings about TDD by lucumo on Thursday August 18, 2022 @02:04PM (#32512923)
Interesting. The method signature is usually the last thing I create.