I was nodding my head through the whole thing, because this is how I approach writing OO code. For me, the way the “reduce state” happens is often due to doing TDD, or during refactoring where I try to encapsulate the state as deeply as possible, which I think is just a different way of looking at the “globality” (globalness?) of the state.
I was nodding my head through the whole thing, because this is how I approach writing OO code. For me, the way the “reduce state” happens is often due to doing TDD, or during refactoring where I try to encapsulate the state as deeply as possible, which I think is just a different way of looking at the “globality” (globalness?) of the state.