Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
falcolas
· 11y ago · 0 comments
Sounds like a well placed comment would be of more value than a test there.
Comments
[–]
CamatHN
11y ago
Comments are easy to miss though. We arnt perfect about going through our code and testing gives us objective measures.
[–]
falcolas
OP
11y ago
A test won't say why code is the way it is; it will simply provide some sample input and expected output to that code. This may be enough, but not always.