5 ms·
I love unit tests, but admit I have absolutely seen unnecessary complexity including complete classes and namespaces solely to enable testability in many cases.
by bbarn 4y ago
I love unit tests, but admit I have absolutely seen unnecessary complexity including complete classes and namespaces solely to enable testability in many cases.
It's a justifiable trade off for me, but I don't pretend that unit testing reduces complexity.
- nosianu 4y agoI think it is of at least slight interest to some who missed it, to bring back this thread from 2018, about Oracle code (I too once worked on it so I immediately saved that comment link when it was posted): https://news.ycombinator.com/item?id=18442941 https://news.ycombinator.com/item?id=18442941
- idontwantthis 4y agoI'm not sure if you're saying so, but those are not unit tests.
- nosianu 4y agoYes it is about tests in general. I think it fits the discussion and many comments very well, this does not really seem to be about only unit tests specifically. Many comments are more general in tone. The very comment at the top of this sub-thread does not seem to limit itself to the subject of unit tests.