Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The tragedy of 100% code coverage (2016). Parent comment
In haskell you embed domain specific languages when you require side effects:
class MonadState s m where get :: m s put :: s -> m ()
You can use different implementations for production and testing without changing any code so mocking is built into everything.
There are no comments on this comment yet.
In haskell you embed domain specific languages when you require side effects:
This is like an interface specifying the basics of all stateful computations.You can use different implementations for production and testing without changing any code so mocking is built into everything.