2 ms·
Try to do TDD with graphics programming. I never bought into TDD because it is only usefull for business logic, plain algorithms and data structures, it is no
by pjmlp 1y ago
Try to do TDD with graphics programming.
I never bought into TDD because it is only usefull for business logic, plain algorithms and data structures, it is no accident that is what 99% of conference talks and books focus on.
There isn't a single TDD talk about shader programming for GPGPU, and validating that what the shader algorithms produce via automated tests, the reason being the amount of enginneering effort only to make it work, and still lacks human sensitivity for what gets rendered.
- MoreQARespect 1y agoI have. I call it snapshot test driven development. You put the preconditions in, generate and record the graphics as an artefact at runtime and when it looks right, freeze it.
- pjmlp 1y agoBut that isn't TDD, no line of code should be written without broken tests.
- MoreQARespect 1y agoYes it is. Until the artefact which has been visually validated is locked in it is still a broken test. You can argue semantics until you're blue in the face it still follows red-green-refactor and it confers the same benefits as TDD.
- brazukadev 1y agoYour nickname tells me you are not talking bs.
- mettamage 1y agoRelatable. Every time I read something about testing it seems backend web dev related. Of course, that’s great but what about the rest?