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.
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.