DEV Community


Discussion on: Clean Architecture Essentials

ivanpaulovich profile image
Ivan Paulovich Author

Hi @eladchen ,

Thanks for the input. On my design a prioritized that "when we pass data across a boundary, it is always in the form that is most convenient for the inner circle."

Considering this I pass domain objects to the Presenter methods as arguments then it is responsible to generate the visualization for each case. I did differently in the past using concrete output objects in the application layer but the conversions didn't payout in the end.

I need to empathize that I follow the general rule to not to expose Domain objects on REST APIs.

eladchen profile image
Elad Chen

Awesome - This has been a real pickle, I'm glad to know that didn't pay out.