android10 / Android-CleanArchitecture-Kotlin

This is a movies sample app in Kotlin, which is part of a serie of blog posts I have written about architecting android application using different approaches.
https://fernandocejas.com/2018/05/07/architecting-android-reloaded/
4.69k stars 935 forks source link

Data organization #123

Open WildOrangutan opened 1 year ago

WildOrangutan commented 1 year ago

Hey,

love your work, but I have an observation to add, from my experience.

It seems like everything is organized in "feature" packages (e.g. movies, login, etc.). This doesn't seem a good idea to me, since feature can sometimes require other data. Data required for a specific feature might not be 1:1.

For example, let's say you had a feature songs and home. Home screen would show most popular songs and most popular movies. How would you organize code in that case? Should home depend on other features - songs and movies? What if songs has no UI, should it still be considered a feature?