Why are global variables bad, in a single threaded, non-os, embedded application
It wouldn’t. The two fundamental issues with global variables is simply cluttering the namespace, and the fact that “no one” has “control” over them (thus the potential collisions and conflict with multiple threads). The “globals are bad”, like pretty much every other computer programming idiom is a guideline, not a hard and fast rule. When … Read more