3 ms·
> Putting all the globals in a class doesn't make any difference to how much state you have. I didn't make any claims about the _amount_ of state. My claim was
by Sesse__ 3y ago
> Putting all the globals in a class doesn't make any difference to how much state you have.
I didn't make any claims about the _amount_ of state. My claim was that “you're forced to acknowledge and understand the complexity of your state” (i.e., moving it all together in one place helps understanding the state) is plain-out wrong.
- IshKebab 3y agoIt's not wrong. Obviously putting it all in one place makes you consider just how much of it you have, rather than having it hidden away all over your code.