Re:Test-Driven Development is Stupid
by tomp on Tuesday November 24, 2015 @08:25AM
(#10620522)
I think you're missing the most important one: ensuring you don't unexpectedly break your own code in the future (when you come back in 6 months and forget why exactly it's arr[1:n-1] not arr[0:n-1] or arr[1:n]).
[ Parent
| on HN ]
Sounds like a well placed comment would be of more value than a test there.
Comments are easy to miss though. We arnt perfect about going through our code and testing gives us objective measures.