4 ms·
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
by 0x457 4y ago
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.
- pjmlp 4y agoHow do you break those testes for a ray tracing algorithm on the GPU?
- richbradshaw 4y agoProbably start with “when code is run make sure GPU is utilised”.
- pjmlp 4y agoDon't write any GPU code without a test....