News for hackers. Stuff that matters.
Re:Experiment: Unit testing isn't enough; You need static ty... by drunkpotato on Wednesday June 20, 2012 @11:07AM (#4137318)
He qualified with "reasonably convinced", and you countered with an unreasonable example. That is the definition of attacking a strawman.
Re:Experiment: Unit testing isn't enough; You need static ty... by kingkilr on Wednesday June 20, 2012 @11:20AM (#4137372)
It's not unreasonable, it only seems unreasonable because of the context. I've seen several really good programmers (and overall bright people) mix the implementation of the two up.
Re:Experiment: Unit testing isn't enough; You need static ty... by chc on Wednesday June 20, 2012 @11:32AM (#4137437)
If you have the two algorithms mixed up, unit tests aren't going to save you either. Nothing will ever save you from intending to do the wrong thing.
Re:Experiment: Unit testing isn't enough; You need static ty... by dllthomas on Wednesday June 20, 2012 @12:43PM (#4137780)
If you actually use the result of the function somewhere, some tests of that component should give wrong answers.