Android SOLID Compliance using State Hoisting & Factory Pattern | SOLID with Android - Part 4

Опубликовано: 15 Сентябрь 2024
на канале: Codetutor
247
18

In this video, we continue refactoring the ViewModel and repositories in our Android application to ensure they are SOLID-compliant. We dive deeper into the Strategy Design Pattern and demonstrate how to apply the Factory Design Pattern to improve code manageability and flexibility. Additionally, we discuss the usage of State Hoisting in Jetpack Compose and its role in creating a reactive UI.

Topics covered:

Refactoring ViewModel and repositories
Implementing the Factory Design Pattern
Ensuring Open-Closed Principle (OCP) compliance
Using State Hoisting in Jetpack Compose
Managing changes across multiple UI elements
Addressing SRP and OCP violations in the repository
Watch the full video to learn how to build better SOLID-compliant Android apps!

#AndroidDevelopment #SOLIDPrinciples #JetpackCompose #MVVM #FactoryPattern #StateHoisting #CleanCode #DesignPatterns #AndroidArchitecture #ViewModel #RepositoryPattern #Refactoring #OCP #SRP #AndroidTutorial

Github Link to the code : https://github.com/AnilDeshpande/Coun...

Follow me on Twitter:   / anilvdeshpande  

Chapters
0:00 - Introduction to SOLID Principles in Android
0:32 - Refactoring the ViewModel and Repository
1:00 - Implementing FilterCriteria and Strategy Pattern
1:42 - State Hoisting in Jetpack Compose
2:40 - Adjusting ViewModel and Using Interfaces
3:58 - Open-Closed Principle (OCP) Violation
4:45 - Refactoring with Factory Design Pattern
6:53 - Managing Filters Using Factory Provider
8:10 - Fixing Repository Violations: SRP and OCP


Смотрите видео Android SOLID Compliance using State Hoisting & Factory Pattern | SOLID with Android - Part 4 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Codetutor 15 Сентябрь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 247 раз и оно понравилось 18 людям.