3 ms·
I find that a better approach is to try and isolate pieces of code that needs access to specific resources, such as configuration files or standard output. Perf
by thomasahle 11y ago
I find that a better approach is to try and isolate pieces of code that needs access to specific resources, such as configuration files or standard output. Performing IO tasks, from every module in a code base, is an easy way to create very unmaintainable code.
Of course this is all a tradeoff with other code structuring ideals. Programming languages with Monads tend to be very good at isolating such things.