News for hackers. Stuff that matters.
Re:Write tests. Not too many. Mostly integration by coconut_crab on Friday October 27, 2017 @10:53AM (#15568953)
I also practice TDD, but with a different 'T' - Type Driven Design. I find them much easier to reason about with types and safer (you can't compile your code if it doesn't pass the type check). Just model your data as ADT and pattern matching accordingly.

Of course, types alone can't represent every error cases out there (especially the one related to number or string), so I still write Unit Test for those cases. But the number of Unit Tests needed is much lower.

Re:Write tests. Not too many. Mostly integration by marcosdumay on Friday October 27, 2017 @11:36AM (#15569416)
That would be ATDD - Abstract Types Driven Design.

It completely fails on concrete types. That's the reason haskellers create a DSL for everything.