Someone has seen my code. 😳
Someone has seen my code. 😳

Me learning to code: Globals are the best!
Me after 2 years: Globals are for noobs.
Me after 5 years: I built the entire system with all parameters passed in via a object to allow for future expansion, and a global object reference system to ensure I won't need a single global variable.
Me after 20 years: I don't have time for this shit, I'll just make all these global and move on.
@nixCraft I made a programming language once that passed all the variables by name through call stack unless explicitly replaced in the call.
It made the code a lot simpler - things like task schedulers and configured contexts got passed without specifying them.
Currently programming languages do that through a hidden global state, so it's better IMO.