8 ms·
One chap at my last place had a crusade against the global variables littered throughout the code base. By gods did he fight the good fight. After what must'v
by Ntrails 9y ago
One chap at my last place had a crusade against the global variables littered throughout the code base. By gods did he fight the good fight. After what must've been a good 2 years of active bitching and pruning, a new product was developed by a sub team without him - to be considered the pinnacle of tech that the team could produce.
Look at this - just a single global variable!!! Amazing! The progress!
Just that one global Dictionary<string,object> which contained everything the various classes would ever want, all easily grabbed with nothing more than a string and a quick cast into whatever the actual type was.
Magic