Re:Ask HN: What's the largest amount of bad code you have ev...
by lojack on Tuesday November 20, 2018 @09:49PM
(#18499826)
Thats exactly the type of code that should be unit tested. The unit tests are trivially easy to write, and a very naive solution is easy to code up. The tests should take up a negligible overhead in your overall test suite runtime. Then when it comes time to optimize the code because its becoming a bottleneck you can be confident that the more obscure solution is correct.
[ Parent
| on HN ]
There are no comments on this comment yet.