News for hackers. Stuff that matters.
Re:Global variables are bad (2013) by nothrabannosir on Thursday July 26, 2018 @03:22AM (#17615678)
Any time I come across (or review) code which uses globals, even at the module level, they invariably make it hard to mock the related code in tests. Dependency injection and class (/instance) level state are an improvement pretty much always.

There are no comments on this comment yet.