Watch my course on MVVM and a REST API: https://codingwithmitch.com/courses/r...
Personally, I think MVVM is the best way to structure code (in most situations).
The thing I like most about MVVM is the compartmentalization of the various components in a project.
1) The UI components are kept away from the business logic
2) The business logic is kept away from the database operations
3) It's easy to read (because everything has specific places to live)
4) And if done correctly, you have a lot less to worry about when it comes to lifecycle events (ex: screen rotations)
➤Blog post on MVVM:
↻ https://codingwithmitch.com/blog/gett...
➤My Courses
↻ https://codingwithmitch.com/courses/
➤My Instagram:
↻ / mitch.tabian
➤Merchandise
↻ https://store.codingwithmitch.com/
Смотрите видео Model View View-Model (MVVM): Getting Started онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodingWithMitch 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 398,84 раз и оно понравилось 6.1 тысяч людям.