Re:Is TDD Worth It?
by seanmcdirmid on Saturday September 28, 2013 @11:31AM
(#6462018)
> when it is understood, the resulting program will have properties that purely functional programs, especially composability and correctness.
It is not that hard to write pure functional code that is not very compassable or correct. Keeping it simple stupid is more important.
That's part of the idea of the "unit" in "unit test." You decompose the program into units for which correctness is relatively simple – and testable.
How to do this properly is not obvious, and for teams on which TDD is imposed without this understanding, it will all become a bizarre and useless ideology.
When it is understood, the resulting program will have properties that resemble those of purely functional programs, especially composability and correctness.