--
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.
Feels presentation level to me. Most UIs would probably include sorting functionality for lists of data.That said, if the UI expects sorted data because of a pageing interface supplied by the interactor it should be able to specify sort criteria and expect data already... sorted.
On 24 March 2014 16:35, Jeff Gilbert <jeff.g...@mutualmobile.com> wrote:
Hey y'all,In trying to follow Uncle Bob's Clean Architecture, I can't decide if sorting should happen in the Interactor or the Presenter.For example, my Interactor retrieves a list of items from a web service. Should I sort them in the Interactor and pass the sorted objects though the boundary to the Presenter? Or, should I allow the Presenter to sort the objects? I know that the Presenter is the appropriate place to apply formatting (e.g. date or currency formatting).How do you determine if sorting is part of the use case (i.e. the Interactor) or part of the UI (i.e. the Presenter)?Thanks,Jeff Gilbert
--
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-discussion+unsub...@googlegroups.com.
In other words:If your UI gets all the entries and plays with sorting and ordering itself, then the interactor always responds with all entries and doesn’t have to know anything about sorting or ordering.If your UI gets only an appropriate amount of entries to display, it’s your interactor’s responsibility to respond with a specific subset of entries, based on sorting and ordering criteria.Cheers,Caio
On 24 Mar 2014, at 13:53, James Green <james.m...@gmail.com> wrote:
Feels presentation level to me. Most UIs would probably include sorting functionality for lists of data.That said, if the UI expects sorted data because of a pageing interface supplied by the interactor it should be able to specify sort criteria and expect data already... sorted.
On 24 March 2014 16:35, Jeff Gilbert <jeff.g...@mutualmobile.com> wrote:
Hey y'all,In trying to follow Uncle Bob's Clean Architecture, I can't decide if sorting should happen in the Interactor or the Presenter.For example, my Interactor retrieves a list of items from a web service. Should I sort them in the Interactor and pass the sorted objects though the boundary to the Presenter? Or, should I allow the Presenter to sort the objects? I know that the Presenter is the appropriate place to apply formatting (e.g. date or currency formatting).How do you determine if sorting is part of the use case (i.e. the Interactor) or part of the UI (i.e. the Presenter)?Thanks,Jeff Gilbert
--
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-discussion+unsub...@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.
--
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-discussion+unsub...@googlegroups.com.