3 ms·
Static type systems don't excuse you from writing tests. But they do effectively write a whole class of tests for you, and run them much faster and give you mor
by cageface 14y ago
Static type systems don't excuse you from writing tests. But they do effectively write a whole class of tests for you, and run them much faster and give you more precise errors than manual testing ever will.
People complain about C++ compile times but I've heard of big Ruby projects with test suites that take 20+ hours to run.
- rbanffy 14y ago> I've heard of big Ruby projects with test suites that take 20+ hours to run. I'd assume those tests go well beyond type checking.
- cageface 14y agoSure but remember most static languages are 20+ times faster than Ruby so even with compile times you might still come out way ahead.
- aidenn0 14y agoAh, but a lot of bugfixes are developed by making small changes to understand better what is going on internally during the bug symptom, and there the compile time is more important than the compile/test time.
- cageface 14y agoTrue, and languages that are slow to compile like C++ really suffer here. But Java and Go compile so quickly it's hardly an issue.