2 ms·
Ok, so I (think I) agree with you that the following poperties make it compelling to test/develop/refactor code: purity / statelessness, algebraic properties of
by plesn 16y ago
Ok, so I (think I) agree with you that the following poperties make it compelling to test/develop/refactor code: purity / statelessness, algebraic properties of programs (transforms…), high level (brevity).
Where I (think I) disagree, is that I think methodology stays globally the same: I would even say that it desn't throw away TDD but gives tools to reinforce it. FP removes whole classes of nasty bugs and so it makes you test more essential stuff ; secondly the tools help you more because the compiler and the testing library know more, so for example in Haskell statistical tests are easy to write, pervasive, and often very meaningfull.
- DanielBMarkham 16y agoI really like your statistical testing example. I haven't seen a lot in the agile community about statistical testing, but in data transformation-like code, as you say, it can be very meaningful.