3 ms·
I'd be willing to bet that a class of problems caught by unit testing in Ruby/Python simply don't exist in Java due to its strong typing. Of course the flipsid
by gaius 18y ago
I'd be willing to bet that a class of problems caught by unit testing in Ruby/Python simply don't exist in Java due to its strong typing.
Of course the flipside of that is that Java's design patterns aren't nearly as important in Ruby/Python as they have functional programming capabilities out-of-the box. Swings and roundabouts.
- utnick 18y agoI'm semi new to unit testing, but I really like it so far. I'm not sure if language choice effects need to unit test. I think that good unit tests test a lot more than type errors and although they are related to design patterns, in that design patterns allow easily unit testable code, and having unit tests in place allows easy refactoring.. unit tests would be helpful even if no standard design patterns were in use. One main barrier to Unit testing that I have personally seen is that a lot of my work is GUI based or simple database CRUD applications. I haven't found a good useful way to unit test those.
- bootload 18y ago"... I'd be willing to bet that a class of problems caught by unit testing in Ruby/Python simply don't exist in Java due to its strong typing. ..." And I'd say an absence of errors does not mean no errors exist. While I don't advocate unit testing as a cure to defects it is comforting to make changes on a system and know you don't break something because of coverage.
- gaius 18y agoIf your language is strongly typed and purely functional, a whole lot of stuff that is taken for granted these days (e.g. design patterns, unit testing) become a lot less prominent. People forget the Old Ways at their peril! :-)