Re:Uncle Bob on DHH: Monogamous TDD
by dragonwriter on Monday April 28, 2014 @04:37PM
(#7662840)
> Why wouldn't you write a test case to test the O() access time of a function ahead of time?
Because asymptotic limits are a lot easier to verify analytically than empirically. You can, of course, easily test the actual performance characteristics under specific conditions, but that's different than testing the asysmptotic limit.
Of course, TDD doesn't preclude analytically verifying those things that can be analytically verified.
Because asymptotic limits are a lot easier to verify analytically than empirically. You can, of course, easily test the actual performance characteristics under specific conditions, but that's different than testing the asysmptotic limit.
Of course, TDD doesn't preclude analytically verifying those things that can be analytically verified.