Side Effects

Section • 6 episodes • 2 hr 59 min

Side effects are by far the most complicated part of any application. They speak to the outside world, they’re hard to control, and they’re hard to test. Any architecture should provide a concise story for where and how to introduce them. the Composable Architecture makes side effects a first class citizen so that they are easily understood, all without sacrificing simplicity or composability, and we can even leverage the Combine framework to do a lot of the heavy lifting!

Where to go from here

The toy application we have been building to explore the Composable Architecture is now quite complex. We’ve got multiple features, each of which have been put into their own modules, and we’ve got side effects that are making network requests and interacting with the local disk. It’s probably time to write some tests right!?