Hacker News new | ask | show | jobs
by ninetyninenine 400 days ago
Game developers work with more purity then web devs as web devs always funnel pure computations to external resources (usually the database).

The weird thing is Game developers don't unit test stuff. Why? Because it's mostly not that effective. I know a lot of people say stuff like game devs are cowboys that don't follow best practices but that's not true. A lot of game devs know their shit inside and out.

Here's the reason why Game devs don't unit test. There's no point. They run the program themselves a couple of times on their own computer and their good. The problem with web dev is that all their code is so Tied with IO they can't even run the code on their computer. So in order to test their logic they have to write mocks and then unit test their code with mocks in place. But why even do this when you can cover it all with an integration test?

Hence I don't unit test. My integration tests and type checking covers it all.