3 ms·
Looking at my modern code on Github (not the stuff from the 1970s and 1980s I've revived), few projects have any global mutable variables at all. There are a f
by Animats 9y ago
Looking at my modern code on Github (not the stuff from the 1970s and 1980s I've revived), few projects have any global mutable variables at all. There are a few that are assigned once at startup. There's a timestamp. In Javascript work, of course, there's the DOM and other state that belongs to the browser.
In some other Python code, I have some global objects which manage some data, but few or none standalone global variables. There just doesn't seem to be much need.