Размышления о том, что нужны разные классы для API, DB и UI данных.
#architecture #data #model
https://blog.danlew.net/2022/08/15/domain-specific-models/
  
  #architecture #data #model
https://blog.danlew.net/2022/08/15/domain-specific-models/
Dan Lew Codes
  
  Domain-Specific Models
  For a long time at Trello Android, we used the same class for parsing API calls (via Gson), making DB transactions (via OrmLite), and displaying data in the UI.
Here’s a pseudo-code-y example of a board:
@DatabaseTable(tableName = "boards")
data class Board(…
Here’s a pseudo-code-y example of a board:
@DatabaseTable(tableName = "boards")
data class Board(…
👍7
  Новый мануал по созданию приложения, которое умеет корректно работать offline. 
Рассказывают не только про чтение данных, но и про запись, типы синхронизации и решение конфликтов.
#android #architecture
https://developer.android.com/topic/architecture/data-layer/offline-first
  
  Рассказывают не только про чтение данных, но и про запись, типы синхронизации и решение конфликтов.
#android #architecture
https://developer.android.com/topic/architecture/data-layer/offline-first
Android Developers
  
  Build an offline-first app  |  App architecture  |  Android Developers
  
🔥22👍4👏1🤩1👌1
  Статья для начинающих о том, что такое UseCase
#android #architecture #usecase
https://medium.com/@donturner/adding-a-domain-layer-bc5a708a96da
  
  #android #architecture #usecase
https://medium.com/@donturner/adding-a-domain-layer-bc5a708a96da
Medium
  
  Adding a domain layer
  In this article, I’ll explain how we added a domain layer to the Now in Android app for improved readability, scalability and portability.
👍19🔥6
  Видео для начинающих о том, как устроен простой data layer в приложении: репозиторий, сеть, БД, типы данных, тесты. 
#android #architecture
https://www.youtube.com/watch?v=P125nWICYps
#android #architecture
https://www.youtube.com/watch?v=P125nWICYps
👍21
  Принцип подстановки Барбары Лисков (L в SOLID)
#architecture #pattern #solid
https://habr.com/ru/articles/739734/
#architecture #pattern #solid
https://habr.com/ru/articles/739734/
👍24😁7👎3
  Полезные советы по работе с репозиториями:
Rule 1 — Don’t use JSON/SQL model in the Repository methods
Rule 2 — Repository is not a group of backend endpoints
Rule 3 — Repository is not a database table
Rule 4 — Not every Repository needs a Data Source
#android #architecture #bestpractice
https://itnext.io/android-data-repository-a-simple-pattern-that-we-often-misunderstand-6a6fb13b5a81
  
  Rule 1 — Don’t use JSON/SQL model in the Repository methods
Rule 2 — Repository is not a group of backend endpoints
Rule 3 — Repository is not a database table
Rule 4 — Not every Repository needs a Data Source
#android #architecture #bestpractice
https://itnext.io/android-data-repository-a-simple-pattern-that-we-often-misunderstand-6a6fb13b5a81
Medium
  
  Android Data Repository — A simple pattern that we often misunderstand
  Scaling Android Architecture #5
👍10
  Пример создания простого приложения с использованием текущих трендов и рекомендаций.
#android #architecture
https://proandroiddev.com/a-flexible-modern-android-app-architecture-complete-step-by-step-d76901e29993
#android #architecture
https://proandroiddev.com/a-flexible-modern-android-app-architecture-complete-step-by-step-d76901e29993
👍25
  Разделение презентационного слоя фичи на модули в Android приложении
#android #architecture
https://habr.com/ru/companies/alfa/articles/773958/
  
  #android #architecture
https://habr.com/ru/companies/alfa/articles/773958/
Хабр
  
  Разделение презентационного слоя фичи на модули в Android приложении
  Привет, Хабр! Я, Алексей , ведущий разработчик в платформенной команде Альфа-Бизнес Мобайл. В этой статье речь пойдет про приложение Альфа-Бизнес и об одной из архитектурных проблем, с которой...
👍9
  Вторая статья про UI слой - State Holders and Saving State
#android #ui #architecture
https://medium.com/bumble-tech/crash-course-on-the-android-ui-layer-part-2-2335171467e0
  
  #android #ui #architecture
https://medium.com/bumble-tech/crash-course-on-the-android-ui-layer-part-2-2335171467e0
Medium
  
  Crash Course on the Android UI Layer | Part 2
  State Holders and Saving State
👍5