News for hackers. Stuff that matters.
Re:I have complicated feelings about TDD by 0x457 on Thursday August 18, 2022 @12:59PM (#32512198)
Many people have a wrong perception of TDD. The main idea is to break a large, complicated thing into many small ones until there is nothing left, like you said.

You're not supposed to write every single test upfront, you write a tiny test first. Then you add more and refactor your code, repeat until there is nothing left of that large complicated thing you were working on.

There are also people who test stupid things and 3rd party code in their tests and either they get a fatigue from it and/or think their tests are well written.

Re:I have complicated feelings about TDD by pjmlp on Thursday August 18, 2022 @06:39PM (#32515676)
How do you break those testes for a ray tracing algorithm on the GPU?
Re:I have complicated feelings about TDD by richbradshaw on Friday August 19, 2022 @02:26AM (#32518035)
Probably start with “when code is run make sure GPU is utilised”.
Re:I have complicated feelings about TDD by pjmlp on Friday August 19, 2022 @02:50AM (#32518153)
Don't write any GPU code without a test....