3 ms·
Yeah there is some cargo cult aversion towards statics. Static methods with no side effect are wonderful, but static state is really bad and static methods whi
by olavk 9y ago
Yeah there is some cargo cult aversion towards statics.
Static methods with no side effect are wonderful, but static state is really bad and static methods which perform IO are horrible because they cannot be mocked in a unittest.
But some people miss this distinction and just say static methods are bad for testing.