When learning new languages, I throw asserts all over the place. Learning to unit-test usually requires knowing more of the language than I already know, but asserts provide 90% of that value by forcing the code to crash if my mental-model of the code does not match reality.
twovests wrote
When learning new languages, I throw
assert
s all over the place. Learning to unit-test usually requires knowing more of the language than I already know, butassert
s provide 90% of that value by forcing the code to crash if my mental-model of the code does not match reality.