News for hackers. Stuff that matters.
Re:The Evolution of a Haskell Programmer (2001) by DonaldFisk on Monday February 08, 2016 @04:48PM (#11061123)
He's assuming that the language the code was written in was strongly typed, and that unit tests were actually written. That is not always the case.
Re:The Evolution of a Haskell Programmer (2001) by ktRolster on Monday February 08, 2016 @05:52PM (#11061535)
He's saying that a strongly typed language with unit tests is not enough to prevent bugs. And he's right.
Re:The Evolution of a Haskell Programmer (2001) by DonaldFisk on Monday February 08, 2016 @07:15PM (#11062009)
Strongly typed languages, and unit testing, do prevent or detect many kinds of bugs less expensively than the alternatives. That is why they're worth using.

Similarly, not all diseases are prevented by vaccination, but that's not considered a good argument to stop vaccinating people against those diseases that are prevented by vaccination.

Re:The Evolution of a Haskell Programmer (2001) by ktRolster on Monday February 08, 2016 @09:09PM (#11062557)
I agree with you, but you're being argumentative. No one here is saying that we should stop unit tests because they can't find all the bugs.

Instead, the focus should be on what else we can do to improve the bug detection rate. This is an area that needs further research (and I would start with the observation that the quality of the unit test varies dramatically depending on who writes them).

Re:The Evolution of a Haskell Programmer (2001) by bribri on Tuesday February 09, 2016 @01:04PM (#11067277)
The debate on dynamic vs strong is more important than testing vs no testing.
Re:The Evolution of a Haskell Programmer (2001) by ktRolster on Tuesday February 09, 2016 @02:56PM (#11068269)
Why? Explain yourself.
Re:The Evolution of a Haskell Programmer (2001) by hellofunk on Monday February 08, 2016 @05:54PM (#11061552)
Yes, this was the point of his quote. Strange how this point was missed in the other comments. Of course, Hickey is aware that not all languages are strongly typed.
Re:The Evolution of a Haskell Programmer (2001) by eru on Monday February 08, 2016 @06:07PM (#11061636)
There might still be far fewer bugs.
Re:The Evolution of a Haskell Programmer (2001) by kbenson on Monday February 08, 2016 @06:07PM (#11061640)
There's always at least one type checker, the one running in your head. Some languages provide another type checker to help offload some of this cognitive load.