3 ms·
> Given a mutually exclusive choice, I'll take a strong test suite over a strong type system any day That's great as long as you'll only ever work on that one
by Terr_ 12y ago
> Given a mutually exclusive choice, I'll take a strong test suite over a strong type system any day
That's great as long as you'll only ever work on that one project.
A test-suite yields benefits for one project, a type-system yields benefits for every project.
- je42 12y agoTrue, however. Test suits tests things that a type system never is able to test. In general, if you reach a non trivial size of code you have to have unit tests in order to stay productive and speedy at a high quality level. A type-system only speeds you up in the beginning.
- wtetzner 12y agoTests are code and need to be maintained. Type systems remove the need for certain classes of tests that would otherwise need to be written and maintained. Just because you need to write other unit tests doesn't mean it's free to write unit tests to check types.
- je42 12y agoI didn't say it is 'free'. I specifically talk about productivity.