3 ms·
We do roughly this where I work, so I broadly agree. That said, it's fairly common for the unit of reuse to be below service methods. Also, depending upon how
by sbov 9y ago
We do roughly this where I work, so I broadly agree.
That said, it's fairly common for the unit of reuse to be below service methods. Also, depending upon how exactly you manage transactions, another thing to look out for is making multiple non-idempotent service calls from the view - this will be an area ripe for race conditions you likely aren't testing.
- Alex3917 9y ago> it's fairly common for the unit of reuse to be below service methods. In terms of utility functions or serializers? What does that look like exactly? E.g. in our codebase service methods can call helper methods (non-reusable), utility methods (reusable), and serializers (non-reusable).