News for hackers. Stuff that matters.
Re:The tragedy of 100% code coverage (2016) by Tarean on Tuesday May 09, 2017 @04:12AM (#14298444)
Pure languages like haskell might be the closest thing at the moment.

In haskell you embed domain specific languages when you require side effects:

    class MonadState s m where
        get :: m s
        put :: s -> m ()
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.

There are no comments on this comment yet.