2 ms·
> I tend to mentally divide code into roughly two types: "computational" and "plumbing". I think of the "computational" type more as a "deterministic data tran
by danans 6y ago
> I tend to mentally divide code into roughly two types: "computational" and "plumbing".
I think of the "computational" type more as a "deterministic data transformation" type. That applies to transformations of any data whether text, images, or the state of a machine.
I think of plumbing as the movement of data without any transformation, or if a transformation occurs, it occurs at and abstracted layer that must be unit tested itself independently.