4 ms·
I get the idea, but the example itself about the logger is not great IMO. Any class doing IO is a dependency, so you normally would just inject it via the cons
by jiehong 3y ago
I get the idea, but the example itself about the logger is not great IMO.
Any class doing IO is a dependency, so you normally would just inject it via the constructor of the class.