Gaining type checking from unit tests
I found another reason for writing unit tests when using a dynamic language like Ruby. By systematically exercising code with under test environment you will get at least the same diagnostic facility as provided by static type checking. Of course I would still like more to be done at compile time.
Perhaps a simple lint like tool that would warn about thing like no such method error. Not that such check would be possible to perform in all cases, but it would be nice. Or is it that my programming world view is still entrenched in a static type system, and I don’t do enough unit tests?
