Molecule (and Circuit) have been working really we...
# squarelibraries
t
Molecule (and Circuit) have been working really well for us, giving us Compose-based presenters. So well, that we want to use Molecule to bring Compose to some of our service classes, in general. Is there any prior work on this? Is this a terrible idea?
s
what's a "service" class?
t
s
got it. yea, as long as you're writing some sort of reactive code in your service classes, I'd say they could benefit from compose
b
I've done it in Cash App in something like repositories. But Services to me don't sound that reactive, are they? From Jesse's post: services make decisions and have side-effects. They send pixels to the screen, files to the disk, or packets to the network. Most of that are one off. That don't make sense to me to use compose here. There are simple regular methods or suspend methods.
s
maybe? but then, these words sound like they're describing a UI
They send pixels to the screen
b
In that case, that's just a presenter which Troy doesn't seem to be referring to.
s
but presenters don't send pixels?
b