• Chuck Stein

    Chuck Stein

    1 year ago
    What are the advantages of having a stateless class injected via Dagger/Hilt which houses methods that operate on input data according to business logic, vs just using a file with top-level functions for this purpose? I have an app which recommends albums to listen to from your library based on your current mood. To do this recommendation, is there any downside to just passing the data set to pick from along with the mood parameters into top-level functions? Why use a class/object if it holds no state?
    Chuck Stein
    Alex Prince
    7 replies
    Copy to Clipboard
  • Cicero

    Cicero

    1 year ago
    Hey, how do you make proper distribution of your data layer objects and why wouldn't you do something like this (code in the thread)
    Cicero
    u
    9 replies
    Copy to Clipboard
  • s

    Slackbot

    1 year ago
    This message was deleted.
    s
    1 replies
    Copy to Clipboard
  • Viktor Petrovski

    Viktor Petrovski

    1 year ago
    Hello 👋 I’m working on some sample project testing things and I wondered how would you guys approach the following pretty common scenario: We have a Feed of posts and a post detail screen that can be open from the feed. We can also like the post, when we like the post from post detail when we go back we also want to update the feed for the post we’ve liked. If we are not using Realm or any DB what would your approach be?
    Viktor Petrovski
    Alex Prince
    2 replies
    Copy to Clipboard
  • b

    Brian Donovan

    1 year ago
    can I get some better understanding on what viewModelFactory does please. ty
    b
    Viktor Petrovski
    3 replies
    Copy to Clipboard
  • theapache64

    theapache64

    11 months ago
    Is MVVM with single activity a suited architecture for leanback based tv apps? More details in the thread 🧵
    theapache64
    FunkyMuse
    3 replies
    Copy to Clipboard
  • u

    ursus

    11 months ago
    Do you use semantic versioning for apps? If so, what would constitute a major change? Unless there is some big redesign, shall I never move to 2.x? 😄 I kind of like year prefix + order of release in year. 21.1, 21.2 etc
    u
    e
    +1
    4 replies
    Copy to Clipboard
  • teddy

    teddy

    11 months ago
    I wonder which one of these 3 technologies like Hilt, Dagger 2 and Koin will a company prefer a candidate to implement for take home assignment of an android dev interview ? Or it depends on the company that use which tech will ask their candidates to use that one? Which one of those 3 is popular these days? I am gonna have an interview next months, so please anyone know any good material can suggest me to study? Thanks a lot!
    teddy
    Will Shelor
    +2
    4 replies
    Copy to Clipboard
  • m

    martinsumera

    11 months ago
    Hi, I’m trying to create an application with the following requirements: • Multi module application • The core module loads some data and decides what kind of feature modules should be shown to the user • The core module is able to load a view (Component) from the feature module and show it as some kind of in-app widget in the core module • In-app widget has its own logic which is hidden from core module and needs to be defined in the feature module • Feature modules should be able to be launched as a standalone application • Feature modules should be developed independently so they should have their own 3rd party library initialization, it’s own DI mechanism, it’s own architecture etc. • The core module, featured modules and standalone feature app module should be able to use some shared logic (login, notifications, network, computations … ) I’m thinking about the following architecture. I can’t decide if I should use dynamic modules or library modules for core module <-> feature module communication. I’ve created a dummy project with both approaches: • The library module works fine (but this will prohibit me from using dynamic modules feature in the future) • The dynamic module loads in-app widgets via reflection (it works so far but I’m stuck on the issues with DI in in-app widgets (link)) Which approach do you think is better for such project? Do you see any other possible issues that could arise from the following architecture?
    m
    1 replies
    Copy to Clipboard
  • e

    Emiliano Schiavone

    11 months ago
    Hello, Im working on a MVI implementation and I want to know how I can structure my State. I though on a simple data class like (val isLoading, val content, val error, etc) and also for a sealed class like State { Loading, Error, Content, Idle }. I like the sealed class approach but i do not know how I can access to previous state. any idea or a better approach for sealed class for State
    e
    Orhan Tozan
    +1
    19 replies
    Copy to Clipboard