Тёмный

Unidirectional Data Flow and State Events (A Taste of MVI) 

CodingWithMitch
Подписаться 145 тыс.
Просмотров 9 тыс.
50% 1

The BEST android courses in the world: codingwithmitch.com/
In this video I talk about the importance of unidirectional data flow and how it can improve the readability and testability of your code base. In the next course we'll be building upon this and creating use cases for the state events. We will then be writing unit tests for those use cases.
Code: github.com/mitchtabian/MVVMRe...
Follow me:
Instagram: / codingwithmitch
Twitter: / mitch_tabian
.
.

Наука

Опубликовано:

 

12 янв 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 63   
@yasserakbbach7342
@yasserakbbach7342 2 года назад
Hi Mitch I was overwhelmed by this unidirectional dataflow but this video nailed it 👌
@osamamohsen3993
@osamamohsen3993 2 года назад
Hey Mitch, you are the best here. thanks for everything
@mayurpathak7662
@mayurpathak7662 3 года назад
Hey Mitch, you deserve this engagement 😄
@muhammedshahin6299
@muhammedshahin6299 Год назад
Thank you, mitch
@andrepipe85
@andrepipe85 Год назад
great video, thank you !
@jaserq
@jaserq 3 года назад
Hey Mitch!!. you are on the pitch !
@applombaa6278
@applombaa6278 2 года назад
Hey Mitch, YOU ARE JUST AWESOME
@anuradhaamarasinghe9649
@anuradhaamarasinghe9649 2 года назад
Hey Mitch I'm almost done with the series. Thanks. here goes the engagement
@mokhefiabdelkrim3815
@mokhefiabdelkrim3815 3 года назад
Thanks Mitch, very helpful
@MuhammadFarhan-pq2wc
@MuhammadFarhan-pq2wc 3 года назад
Hey, Mitch, I'm with you to adopt MVI Architecture. I just Implement it in and I'm in love with this Architecture its supper cool and the best thing about it is that you have to implement all the cases a Screen can have.
@rafsanahmad1062
@rafsanahmad1062 2 года назад
Hey Mitch, Thanks for the videos Man..
@maxut2162
@maxut2162 3 года назад
Amazing your videos, they are really helping me getting into Compose 😀
@immortaleternal5125
@immortaleternal5125 Год назад
Thanks mitch
@rezznov98
@rezznov98 2 года назад
Hey Mitch. Here's your engagement :D Thank you for making valuable content man.
@vanshtandon1352
@vanshtandon1352 3 месяца назад
excellent explanation
@danyelsh874
@danyelsh874 2 года назад
Hey Mitch Thanks Mitch
@hellespont5072
@hellespont5072 3 года назад
Interesting stuff! 🤓
@arpie2671
@arpie2671 Год назад
Here is the engagement because you said it's mandatory. 😄
@terencejumba1939
@terencejumba1939 2 года назад
very nice courses mitch
@michaguspiel9015
@michaguspiel9015 Год назад
Hi Mitch, cool content.
@johnybaby9574
@johnybaby9574 3 года назад
cool~
@HimanshuHiranandani
@HimanshuHiranandani 2 года назад
Hey, First of all these videos are awesome, and thank you so much sharing these!!! I do have a question on how this came to be? the whole MVI architecture is surprisingly similar to the Redux pattern seen in reactJS for web development. Is that the origin, or does this pattern date back anywhere before that? Any references would be really helpful. Also, Jetpack compose and Swift UI is basically the same as what JS frameworks have done for web development, so why is the terminology so different?
@michelegiannone2149
@michelegiannone2149 Год назад
Nice
@baardkristian
@baardkristian 3 года назад
Probably never heard this one before, "Number one... Engage."
@wandereats9193
@wandereats9193 3 года назад
👌
@appsdeveloper4024
@appsdeveloper4024 3 года назад
Cool
@giiga
@giiga 3 года назад
Engagement!! 💍. And actually got engaged a couple weeks ago! 😄😄
@codingwithmitch
@codingwithmitch 3 года назад
Congrats
@tyler07830
@tyler07830 2 года назад
Hey Mitch, I ate chicken pie for breakfast today. Great vid btw
@aminuidris9388
@aminuidris9388 3 года назад
Hey Mitch, here 'ss your engagement 😄😄
@baadrqaaba9529
@baadrqaaba9529 2 года назад
hey mitch you have just got an Unidirectional engagement
@gokberkyagc4442
@gokberkyagc4442 3 года назад
Hey Mitch, can you share your experience with us at the following sitations 1. One shot state properties like showing snackbar, page redirection 2. Handling simultaneously triggered/processed events to avoid race condition
@codingwithmitch
@codingwithmitch 3 года назад
What is race condition?
@gokberkyagc4442
@gokberkyagc4442 3 года назад
@@codingwithmitch I guess this situation could be in the process of producing state without showing progress (disabling user interaction) on ui. An end user could trigger two events without waiting for the other to finish. Or the push notification could trigger another event and the producer had already processed another event. In this case state producers could produce and emit two states at the same time and also they want to edit the same shared object (prolly old emitted state) at the same time. I guess state producer should work with flow or Mutex these cases to avoid a race condition. But i'm trying to find the best way to solve the problem. Btw they known as state reducer
@codingwithmitch
@codingwithmitch 3 года назад
@@gokberkyagc4442 For one shot properties (snackbars, dialogs, toasts) I like to build a stack of "pending messages". When the user clicks "ok" or the message goes away, it is removed from the stack. If I am understanding your "Race condition" question, you are essentially asking: "how can I do multiple requests/events at once and prevent one result from overriding another result?" I like to use flows that emit a common data structure. That data structure contains a field for each individual event response. So they can't overwrite one another. They are separate fields within the same encapsulating object
@kaloyanroussev5435
@kaloyanroussev5435 3 года назад
Cool. Pink Floyd is great. I had burritos for breakfast today
@AyorindeAdesugba
@AyorindeAdesugba 3 года назад
Engagement engaged
@shivamsethi3829
@shivamsethi3829 3 года назад
here's something engagement
@jojomajo
@jojomajo 3 года назад
Hey Mitch. I don't forget I remember
@susanthapa7571
@susanthapa7571 3 года назад
I have used unidirectional state flow architecture in few apps and it's great. One of my concern with this architecture is that the number of classes increases exponentially as you add more screens. I am currently looking into MvRx and trying to compare which architecture is better. Here is the link medium.com/swlh/yet-another-uni-directional-state-flow-architecture-in-android-6957f5f3b37b to my blog post about unidirectional state flow.
@czerewacz
@czerewacz 3 года назад
Hi Mitch! When you will start with Twitch Live and coding projects??
@codingwithmitch
@codingwithmitch 3 года назад
Prob never. But maybe play games on twitch 😬
@ChrisAthanas
@ChrisAthanas 3 года назад
We are setting sail for the mythic land of 100k, hopes are high and let’s pray we don’t see any Florian Pirates that will steal our sealed events
@abolfazlrezaei5397
@abolfazlrezaei5397 2 года назад
hey mitch, here's your engagement :)
@Shoan3D
@Shoan3D 3 года назад
MVI Engagement
@harveytai3181
@harveytai3181 3 года назад
engagement
@bboydarknesz
@bboydarknesz 3 года назад
Actually I like this Event Architecture
@cristianovecchi
@cristianovecchi 3 года назад
Toward REDUX
3 года назад
object Engagement: GreatStuffEvent()
@raghavendpai
@raghavendpai 3 года назад
engaged engagement engaged 😁😁😁
@lindaporsius
@lindaporsius 3 года назад
Hej Mitch, here is my engagement
@mishaeliseev
@mishaeliseev 3 года назад
Hey Mitch! How are you?
@sanushradalage4091
@sanushradalage4091 3 года назад
Rainy day for Sri Lanka
@GidzPaul
@GidzPaul 2 года назад
For engagement
@sharkaboi
@sharkaboi 3 года назад
Cup noodles dinner!
@Firespirit233
@Firespirit233 3 года назад
Mitch, don't you think the jetpack compose layer looks messy ? the older approach was cleaner when layout was separated from classes. is it easy to support jetpack compose projects?
@codingwithmitch
@codingwithmitch 3 года назад
I think it's waayyy better
@Shafayat124
@Shafayat124 3 года назад
Hey Mitch, heres your engagement or something.
@codingwithmitch
@codingwithmitch 3 года назад
Perfect
@PrajwalCanonShutter
@PrajwalCanonShutter Год назад
Paneer chilly 🤭
@hellosagar
@hellosagar 2 года назад
I have samosa today
@islamassem2448
@islamassem2448 2 года назад
Hey Mitch, you deserve this engagement 😄
@Byte_Code
@Byte_Code 3 года назад
👌
Далее
State Hoisting with Jetpack Compose
10:29
Просмотров 12 тыс.
POLI зовет Газана
00:12
Просмотров 1,1 млн
Unidirectional Data Flow
23:03
Просмотров 1,1 тыс.
Все тайны MVI
1:30:52
Просмотров 13 тыс.
DO NOT do this in a Software Engineering Interview
7:59
Etienne Carol - Simple MVI Architecture for Android
35:59
Architecture: The Domain Layer - MAD Skills
8:48
Просмотров 56 тыс.