You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, this is not a bug report, but more an architectural inquiry.
While your project and blog give out perfectly suitable outlines to make a data-centric app, i'm wondering about where you'd put application specific logic, for instance an android specific location provider. I'd think that a user presses a button "get current location", which through the presentation layer, fires of a use case in the domain logic. Which in turn would have a reference to that location provider, gather data and then return a formatted response back up to the user.
Should that location provider also be in the data layer, since it's about location data? Or would it be correct to assume that, since the location provider is specific to the platform and application, you'd want to create another sub-project application and reference it in the domain layer. The application layer would then hold things like the location provider, notification manager, logging framework and so on.
I'd like to hear your input in this matter.
The text was updated successfully, but these errors were encountered:
I think both approaches you are mentioning are valid. I would not create another module cause it generates much more noise unless your location logic is complex, so in that case I would extract it to another module.
I'm gonna work on a more real case soon applying this approach and will open source it.
First off, this is not a bug report, but more an architectural inquiry.
While your project and blog give out perfectly suitable outlines to make a data-centric app, i'm wondering about where you'd put application specific logic, for instance an android specific location provider. I'd think that a user presses a button "get current location", which through the
presentation layer
, fires of a use case in thedomain logic
. Which in turn would have a reference to that location provider, gather data and then return a formatted response back up to the user.Should that location provider also be in the
data layer
, since it's about location data? Or would it be correct to assume that, since the location provider is specific to the platform and application, you'd want to create another sub-projectapplication
and reference it in thedomain layer
. Theapplication layer
would then hold things like the location provider, notification manager, logging framework and so on.I'd like to hear your input in this matter.
The text was updated successfully, but these errors were encountered: