3 ms·
I've seen the opinion "static typing obviates the need for unit tests" expressed pretty frequently, and I can merely gape utter bafflement. I like static typing
by TillE 6y ago
I've seen the opinion "static typing obviates the need for unit tests" expressed pretty frequently, and I can merely gape utter bafflement. I like static typing, but it's not magic pixie dust. Start with the fact that unit testing was widely popularized with Java.
- closeparen 6y agoYou have literally no idea whether an untested line in a dynamic language could ever work. A line in Java that compiles but doesn't have test coverage still probably does what it says, and how badly you need that test coverage depends on the complexity of what it says.