Re:Show HN: IHP v1.0 (Batteries-included web framework built...
by mananaysiempre on Monday October 24, 2022 @03:53PM
(#33321687)
Haskell's QuickCheck, AFAIK the first prominent property-based test framework, gained its popularity partly because it eliminated a good part of the tedium by inferring the sampling strategies from the types (which in idiomatic Haskell are, due to liberal use of opaque type synonyms, often quite a bit more specific than in any other non-dependently-typed language I've seen). Which does not free the programmer from writing down the properties themselves—in that respect your objection is valid—, but IME still makes it quite a bit more ergonomic than e.g. Python's otherwise functionally equivalent Hypothesis.
[ Parent
| on HN ]
Re:Show HN: IHP v1.0 (Batteries-included web framework built...
by switchbak on Wednesday October 26, 2022 @12:28AM
(#33339820)
You'll find no argument from me there, property based testing has been a real game changer for me. I imagine it would have a fraction of the value without being able to leverage the type system to a great degree.