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
Thanks for code sharing!
Many architecture blueprints I saw (google samples MVP for example) implement repository pattern incapsulating also API calls under repository CRUD methods.
Please, describe why you considered not implement repository pattern the same way?
Thank you.
The text was updated successfully, but these errors were encountered:
@VanZaant This was done so that the APIs and DB are handled separately. They only are responsible for their own roles and independent of any other application components.
It makes the application loosely coupled with each component having their independent roles.
It allows us to make any external libraries replaceable with ease.
Thanks for code sharing!
Many architecture blueprints I saw (google samples MVP for example) implement repository pattern incapsulating also API calls under repository CRUD methods.
Please, describe why you considered not implement repository pattern the same way?
Thank you.
The text was updated successfully, but these errors were encountered: