3 ms·
But who is doing the "passing-in" then, and where does the data come from? This still sounds like hiding the problem...or more specifically, making it someone
by dahauns 8y ago
But who is doing the "passing-in" then, and where does the data come from?
This still sounds like hiding the problem...or more specifically, making it someone else's problem.
- scarface74 8y agoUsually the data comes from outside the system - an api integration, user interactions with a website, an ETL process involving a file, IOT devices, etc.
- hinkley 8y agoWho does the passing in in development mode? Where does the data come from? You have this problem anyway, and it blocks you from launching new code. These out of band communication mechanisms always lead to problems with developer ergonomics and repeatability. It's essentially a larger version of the problem of testing pure functions versus heavy usage of mocks. Passing the data in directly makes testing the callee very simple.