Re:Why might a C++ programmer say “I could never write Python”?
by acveilleux on Saturday January 24, 2015 @01:09PM
(#8940375)
On the other hand, I see a lot of Java code where the unit tests are woefully inadequate but the fact that Eclipse/IntelliJ/Whatever had no warnings and javac liked the code meant the programmer thought he'd done a good job.
Hell, most of the world's C code was written basically that way. Often with a lot less testing and most of the testing that was actually done included no edge cases.
> Tests that wouldn’t tell you very much at all in Scala (that just run the code and don’t check the result) suddenly become incredibly useful!
I don't really know what that means. A Python programmer doesn't (shouldn't?) go out of their way to write insane tests like this because they are scared of the "uncertainty" of dynamic typing. Just write unit tests, and make sure your code is sufficiently covered. Use flakes/frosted to find low hanging fruit like this.