3 ms·
Games and UIs are special when it comes to state. They're weird in the space of all programs because their domain specifically concerns itself with maintaining
by _bxg1 7y ago
Games and UIs are special when it comes to state. They're weird in the space of all programs because their domain specifically concerns itself with maintaining and transforming a bunch of state over time. State is the point, in a way that it isn't for the vast majority of programs.
There are still lots of cases in games where state shouldn't be global, but there are also lots of cases where it's very natural and legitimate.