Em 8 de dez de 2015, à(s) 12:59, Jeroen De Dauw <jeroen...@gmail.com> escreveu:
I have a system where I have Use Cases / Interactors that pass Response Models to Presenters. It is not clear to me where ordering of data should happen. Should it be done by the Presenter, or should the Presenter get a Response Model that already includes the correct order as determined by the Interactor?
My initial thoughts on this where that sorting is a presentation concern, and should thus not be in the Interactor or Response Model. However, I cannot imagine using a different Presenter for the same Use Case / Interactor and have a different sort. Furthermore, while I'm not planning on adding any such thing, one can imagine adding sorting information to the Request Model, in which case the Response Model would certainly need to be sorted.
--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discu...@googlegroups.com.
To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.