2 ms·
Why pollute your data objects when you could just return a separate object at the same time? Improves cohesion. Seperates responsibilities. Removes duplication
by CraigJPerry 13y ago
Why pollute your data objects when you could just return a separate object at the same time?
Improves cohesion. Seperates responsibilities. Removes duplication and redundancy.
When you pass the metadata off for aggregation or other processing with this multi return model, you dont pull along a chunk of irrelevant business data at the time.