2 ms·
As you approach this answer from a functional programming perspective, I imagine a “unit of work” becomes intuitive: something that provides a correct result fo
by dfee 3y ago
As you approach this answer from a functional programming perspective, I imagine a “unit of work” becomes intuitive: something that provides a correct result for its inputs.
Integration of these is also a unit of work.
In my mind, it’s also a requirement to be tested, either via true unit testing (generally), or if logical, offloading to the compiler to statically provide coverage.
This doesn’t cover aligning work with the problem statement, or design. But that’s art.
(Edit: I’m describing a function in paragraph 1, and a pure function is especially easy to digest as the ideal candidate for a UOW).
- csours 3y agoI think this is also an interesting approach, I like it.