19 ms·
From a software design and engineering perspective, I agree with the NASA report's take on global variable use. ... but I've also done game development, where
by shadowgovt 5y ago
From a software design and engineering perspective, I agree with the NASA report's take on global variable use.
... but I've also done game development, where maximum performance in minimum time is absolutely essential, and I wonder if it was actually feasible to maintain the performance the control system needed without global state.
There's also the possibility of a culture clash. I've noticed that in embedded systems architecture development, global variables aren't frowned upon nearly as hard as they are in enterprise software, mostly because of the industry history of doing more with less. So I imagine a software culture risk developing from getting a bunch of hardware guys on a project where they now have access to microcontrollers with more memory than ever, but their risk tradeoff mindset is still "take the risk to squeeze every byte because we might run out."