...

/

Different Output Models for Different Use Cases

Different Output Models for Different Use Cases

Learn about different output models for different use cases and how they can help in writing maintainable code.

Returning data

Once the use case has done its work, what should it return to the caller?

Similar to the input, it has benefits if the output is as specific to the use case as possible. The output should only include the data that is really needed for the caller to work.

In the code example of the “Send Money” use case ...