4 ms·
>Java code does tend to be much less buggy when compared with dynamic-typed code I only see this happen when both the Java code and the dynamically typed code
by crdoconnor 11y ago
>Java code does tend to be much less buggy when compared with dynamic-typed code
I only see this happen when both the Java code and the dynamically typed code both have zero tests.
IME, once you actually start taking integration testing seriously and actually exercise your code even just a little, the benefits of static typing evaporate pretty quickly.
- raz32dust 11y agoThen you indirectly agree that java code requires less tests, which means static typing helps!
- crdoconnor 11y agoNope. The same tests you'd need anyhow to catch logic errors will end up catching type errors. If a test becomes unnecessary if you have static typing then you should never have written it in the first place. It's a bad test.
- dllthomas 11y ago"If a test becomes unnecessary if you have static typing then you should never have written it in the first place. It's a bad test." That seems a very strong - and unsupported - claim. Could you elaborate?