3 ms·
Is the goal to hide complexity? Any non-trivial program is going to be complex no matter how you refactor it.
by Qz 17y ago
Is the goal to hide complexity? Any non-trivial program is going to be complex no matter how you refactor it.
- prodigal_erik 17y agoFor me the goal is to divide the complexity at natural boundaries so I can just focus on a portion of it. Sometimes I care about the abstract contents of an object I'm transmitting. Sometimes I care about how objects in general are serialized into a stream. Sometimes I care about how a stream is spread across TCP packets. But I hardly ever care about all these layers simultaneously, and it'd be harder to make any changes I need if I had to understand and correctly maintain the invariants of all of them.