Fork me on GitHub
#luminus
<
2019-03-03
>
adc1701:03:55

@yogthos so component vs mount is kind of 'dependency inversion' vs 'no dependencies'? This makes a lot of sense, but it's hard! Not being able to pass impure functions into your business logic (e.g. find and save) makes finding abstractions that don't significantly reduce the ratio of business logic/IO trickier, at least for me. Would you recommend any patterns/thought processes/examples that help with this?

yogthos01:03:46

one thing that might help is to start with the business logic and to mock out the data you're expecting from external sources

yogthos01:03:40

so you'd create a mock API that you get data from, and then work against that, and then you couple it to the actual IO afterwards

adc1711:03:21

thanks, will give that a try