EdricChan03 / EdricChan03/studybuddy-android

Improve app architecture

Open
#347 0 comments 0 reactions 0 assignees View on GitHub
enhancement migration
Dominant language
Kotlin
Stars
23
Forks
9
Avg merge
9h 1m
Merged PRs (30d)
1

Description

## Overview

The [Model-View-ViewModel](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel) architecture pattern is a good way to "separate the user interface from the backend logic". This also allows for the backend to be easily tested on its own without it being tightly coupled with the UI.

### Repository pattern

Additionally, a repository pattern can be used where the logic used to retrieve data can be separated from the ViewModel. Google recommends such a pattern as part of the [Guide to app architecture docs](https://developer.android.com/jetpack/guide#recommended-app-arch).

## Current progress

- [ ] Todos _(in progress)_
- [x] Help page

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.