Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Relatable. Every time I read something about testing it seems backend web dev related. Of course, that’s great but what about the rest?


I 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.


But that isn't TDD, no line of code should be written without broken tests.


Yes 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.


Your nickname tells me you are not talking bs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: