julianomoraes / componentizationArch

Apache License 2.0
260 stars 39 forks source link

A more complex example? #2

Closed brewin closed 5 years ago

brewin commented 5 years ago

It isn't clear to me how this architecture would work with more complex "components". A more fleshed-out example, such as a simple to-do list, would be helpful.

george-theocharis commented 5 years ago

Indeed! All these mvi / redux architectures sounds good on paper but in complex scenarios it becomes a different kind of beast.

bernaferrari commented 5 years ago

I would like to see RecyclerView and Dialogs using this structure. I tried without success, but Epoxy/MvRx has been the best for me/the closest I could get to multiple states, clean, and testable architecture.

julianomoraes commented 5 years ago

Working on this, more to come in the DroidCon SF

george-theocharis commented 5 years ago

Nice looking forward to it!

bernaferrari commented 5 years ago

I watched it, but I still think you could have gone deeper into it (like with a RecyclerView or a seek bar instead of play/pause)

https://youtu.be/1cWwfh_5ZQs

george-theocharis commented 5 years ago

I tried the architecture and i think it’s great. It has it’s difficulties, for example what is a component and what’s a mere detail of a screen.

I would like to see from you an example of a dialog, snackbar or recycler view.

jmcaldera commented 5 years ago

How can we use this with other layers of our app architecture like Presenters/ViewModels or should we get rid of them?

Also if we are using UseCases to communicate with a Repository, should we add the UseCases to Activity/Fragments and make the calls there or maybe create a new object/layer that takes a bus and react according given events?

timc-mediamonks commented 5 years ago

@julianomoraes are there any updates on this? I am very interested in your take on the "more complex" approach 👍

bernaferrari commented 5 years ago

I've been using MvRx with some insights from Juliano's approach and couldn't recommend anything else!

julianomoraes commented 5 years ago

Stay tuned for this year's Droidcon. :)

bernaferrari commented 5 years ago

Which one? 😔

julianomoraes commented 5 years ago

Check this out --> https://medium.com/@NetflixTechBlog/making-our-android-studio-apps-reactive-with-ui-components-redux-5e37aac3b244

bernaferrari commented 5 years ago

You read a lot. We like that. You’ve reached the end of your free member preview for this month. Upgrade for unlimited access.

Could you please disable the medium paywall for that article?

julianomoraes commented 5 years ago

done