“It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.”
– Old Chinese proverb
“It is better to take many small steps in the right direction than to make a great leap forward only to stumble backward.”
– Old Chinese proverb
Christopher Columbus does not followed this kind of thinking. Sometimes it is really better to start in some direction – like in iterative algorithms … In some cases it is different to predict which direction is right. Unit testing is one of the methods which the programmers should use to see the right direction – at least “right direction from functional point of view”… 🙂
Recently, I found out for me what is TDD, and in some way it is related with the strategic approach which is used in the chess game from the biggest chess players as Kasparov. If you want to reduce the complexity, you just start from the target and go backward to you current position searching for the best decision. On this way you cut the complexity. Actually this is a strategic approach because you answer of answers like “what do you expect”. In TDD there is also a rule that you should set your assert at the end of unit test and implement backward your decision which is the same! 😀 If I should say it briefly TDD is a perfect way to reduce the complexity.