News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.