mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-07-31 22:40:19 +02:00
[Add] Android roadmap: Docs MVVM and MVC (#6519)
* [Add] Docs MVVM and MVC * [Change] Docs formatted
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# MVC or Model View Controller
|
||||
|
||||
MVC or `Model View Controller` is a software design pattern commonly used for developing user interfaces that divides the related program logic into three interconnected components.
|
||||
|
||||
Components:
|
||||
|
||||
- `Model`: The internal representations of information. This can often be an Interactor or UseCase
|
||||
- `View`: The interface that presents information to and accepts it from the user
|
||||
- `Controller`: The controller contains logic that updates the model and/or view in response to input from the users of the app.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@MVC](https://developer.mozilla.org/en-US/docs/Glossary/MVC)
|
||||
- [@article@Model–view–controller](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)
|
@@ -0,0 +1,14 @@
|
||||
# MVVM
|
||||
|
||||
The `Model-View-ViewModel` (MVVM) pattern is a software architectural pattern commonly used in UI development. It is designed to separate the concerns of an application, making the code more modular, testable, and maintainable.
|
||||
|
||||
Components:
|
||||
|
||||
- `Model`: Refers either to a domain model, which represents real state content (an object-oriented approach), or to the data access layer, which represents content.
|
||||
- `View`: The view is the structure, layout, and appearance of what a user sees on the screen.
|
||||
- `View model`: The view model is an abstraction of the view exposing public properties and commands. The view model has been described as a state of the data in the model.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@article@Android Developers: View Model](https://developer.android.com/topic/libraries/architecture/viewmodel)
|
||||
- [@article@Wikipedia](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel)
|
Reference in New Issue
Block a user