3 ms·
Indeed, spaghetti code is bad, but spaghetti data manipulated by spaghetti code is orders of magnitude worse. The thing that I never got is why there are plent
by jacquesm 5y ago
Indeed, spaghetti code is bad, but spaghetti data manipulated by spaghetti code is orders of magnitude worse.
The thing that I never got is why there are plenty of high level languages that have 'global' more or less as the default. This is asking for trouble. Side effects should be very carefully introduced and reasoned about and kept to an absolute minimum, not be the default sauce to sprinkle across your codebase, the possible number of states increases very rapidly if you do that.
- kevin_thibedeau 5y agoDynamic allocation is generally forbidden in this application so all system state has to be in global or static variables. Otherwise you'd have to invest in formal analysis tools to prove that memory won't be exhausted.