Tagged articles
2 articles
Page 1 of 1
Sohu Tech Products
Sohu Tech Products
Jun 20, 2024 · Fundamentals

Mastering UseCase: Avoid Common Pitfalls and Follow Best Practices in Android Architecture

This article examines the role of UseCase in Android's modern architecture, clarifies its responsibilities, demonstrates proper naming, thread‑safety, signature design, referential transparency, and interface abstraction, and provides concrete Kotlin examples of both incorrect and correct implementations.

AndroidClean ArchitectureDomain Layer
0 likes · 10 min read
Mastering UseCase: Avoid Common Pitfalls and Follow Best Practices in Android Architecture
Sohu Tech Products
Sohu Tech Products
Jan 24, 2024 · Mobile Development

The Purpose of UseCase in Android Architecture

UseCase objects, placed in the Domain layer of modern Android architecture, encapsulate complex business logic that was previously crammed into ViewModels, thereby enforcing clean separation of concerns, adhering to the Single Responsibility Principle, and making the codebase clearer, more maintainable, and scalable.

AndroidClean ArchitectureDomain Layer
0 likes · 7 min read
The Purpose of UseCase in Android Architecture