News for hackers. Stuff that matters.
Re:Rust – How do I create a global, mutable singleton? (2015) by logicslave on Wednesday July 22, 2020 @11:04AM (#23917784)
Its dogma. Like a religion. A whole generation of people believing in things with no root evidence except that the knowledge is ubiquitous
Re:Rust – How do I create a global, mutable singleton? (2015) by bluejekyll on Wednesday July 22, 2020 @11:20AM (#23917942)
I have plenty of history with global state, various contexts in large applications, that make testing code unnecessarily complex.

So, yes, global state is sometimes necessary, but it absolutely should be avoided, and access to it should be restricted.