A friend was telling me that he had to write a user onboarding flow involving external APIs like Stripe and Mailchimp. Writing it and testing it involved setup on staging accounts and mocking the objects that got returned from the service.
I was wondering if HN had any war stories about how side-effects really made your code base more complicated and made your job harder. Or maybe it wasn't, and you were able to find easy ways to mitigate state management/side effect complications?
The whole point of a lot of code is to have side effects.