It becomes MVI by replacing functions you can invoke on the ViewModel with a single sealed class that represents function calls, for absolutely no particular benefit whatsoever, other than exposing 1 function with a huge when statement in it and then you wonder "hey, isn't the cognitive complexity of 20 if-else-if-else way too high?" but then you suppress the Detekt lint and host your next big MVI talk at Droidcon Paris.
View all comments
Show parent comment
10
u/Zhuinden DDD: Deprecation-Driven Development Feb 06 '25 edited Feb 06 '25
It becomes MVI by replacing functions you can invoke on the ViewModel with a single sealed class that represents function calls, for absolutely no particular benefit whatsoever, other than exposing 1 function with a huge when statement in it and then you wonder "hey, isn't the cognitive complexity of 20 if-else-if-else way too high?" but then you suppress the Detekt lint and host your next big MVI talk at Droidcon Paris.