4 ms·
A lot of people in the imperative world have learned that it’s much easier to test pure functions, and many more people know how badly global shared state affec
by hinkley 3y ago
A lot of people in the imperative world have learned that it’s much easier to test pure functions, and many more people know how badly global shared state affects scalability on the human factors side (everything, everywhere, has access to changes this variable, so good luck figuring out why it gets a bad value).
Functional core, imperative shell is the compromise where you collect state in shallow parts of the code, where they are easier to spot and thus easier to reason (correctly) about.