2 ms·
Jeff Atwood wants a pile of tests without understanding -- Rich Hickey wants total understanding without tests... Where is the middle ground?
by fogus 17y ago
Jeff Atwood wants a pile of tests without understanding -- Rich Hickey wants total understanding without tests... Where is the middle ground?
- michael_dorfman 17y agoWell, if you have total understanding you probably don't need tests, but most of us (Knuth excepted, apparently) don't get to that level. So, the middle ground is: understand as much as you can, test as much as you have to.
- eru 17y ago"Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald Knuth > So, the middle ground is: understand as much as you can, test as much as you have to. Test even what you understand. QuickCheck (http://www.cs.chalmers.se/~rjmh/QuickCheck/ http://www.cs.chalmers.se/~rjmh/QuickCheck/) and friends like SmallCheck and Lazy SmallCheck let you turn specs into tests easily.