@davetchepak @pjimmy @TheColonial ie. separate pure and impure, and only test the pure code?
-
-
Replying to @liammclennan
@liammclennan@davetchepak@pjimmy I think that's a great approach. Put more effort into writing pure and leaving impure at the edges.1 reply 0 retweets 0 likes -
Replying to @TheColonial
@TheColonial@liammclennan@pjimmy Can still test impure code if that helps. But if majority is pure then majority should be easy to test.1 reply 0 retweets 0 likes -
Replying to @davetchepak
@davetchepak@TheColonial@pjimmy doesn't that bring you back to mocks?2 replies 0 retweets 0 likes -
Replying to @liammclennan
@liammclennan@TheColonial@pjimmy I think automating it encourages us to always inject objects, where pure functions might be appropriate.3 replies 0 retweets 0 likes -
Replying to @davetchepak
@davetchepak@liammclennan@thecolonial@pjimmy use message passing /w sum types, fakes can then be lists2 replies 0 retweets 0 likes -
Replying to @robertream
@robertream@davetchepak@TheColonial@pjimmy Interesting. Can you elaborate?3 replies 0 retweets 0 likes -
Replying to @liammclennan
@liammclennan@robertream@davetchepak@pjimmy The point is abstracting to a list, then your mock literally means “pass in a list”.2 replies 0 retweets 0 likes -
Replying to @TheColonial
@TheColonial@liammclennan@robertream@davetchepak@pjimmy yooz are weered.1 reply 0 retweets 0 likes -
Replying to @dibblego1 reply 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.