Code which communicates with the underlying socket is monadic. Code which just analyses results computationally are pure. If you split this up, then it becomes easier to test the code base by invoking internals on the purely-functional parts.
It also improves the general structure of the module and shifts responsibility around in a neat way.
Code which communicates with the underlying socket is monadic. Code which just analyses results computationally are pure. If you split this up, then it becomes easier to test the code base by invoking internals on the purely-functional parts.
It also improves the general structure of the module and shifts responsibility around in a neat way.