News for hackers. Stuff that matters.
Re:Is unit testing doomed? by gaius on Monday August 11, 2008 @05:28PM (#273344)
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.

Re:Is unit testing doomed? by utnick on Monday August 11, 2008 @06:39PM (#273452)
I'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.

Re:Is unit testing doomed? by bootload on Monday August 11, 2008 @07:47PM (#273506)
"... 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.

Re:Is unit testing doomed? by gaius on Tuesday August 12, 2008 @06:24AM (#273877)
If 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! :-)