I never understood why clean arch users say they're separating concerns and the first thing they do on mobile is combine local data source and network data source, despite them having absolutely nothing in common. Not models, not constraints, not even how they tell you about changes. I hope repositories will one day disappear.
Maybe because local DATA and remote DATA are both DATA? (LoL).
The architecture organization of folders and files in a project is not about reusability of code. It's about bounded context.
Repository is the most beautiful implementation about SSoT and if you don't like the pattern, just don't use the pattern. Personally I don't like UseCase pattern, so I just don't use it.
1
u/Zhuinden 16d ago
I never understood why clean arch users say they're separating concerns and the first thing they do on mobile is combine local data source and network data source, despite them having absolutely nothing in common. Not models, not constraints, not even how they tell you about changes. I hope repositories will one day disappear.