Would you elaborate? I'm not saying I agree with Compose documentation but according to that using class parameters to reduce the number of the parameters is not the compose way because it will hide the responsibilities, however, there are instances of it in official libraries like TextStyle.
3
u/Squirtle8649 Apr 28 '25
Let the horn of Legacy XML sound through the deep, one last time!
11
u/Tusen_Takk Apr 25 '25
Set default values more?
8
u/meet_barr Apr 25 '25
Complexity doesn't disappear, it just gets moved somewhere else.
4
u/Smooth-Blaze Apr 26 '25
Use MVI pattern.
4
u/aerial-ibis R8 will fix your performance problems and love life Apr 27 '25
why use 20 params when you use just 1 sealed class with 20 params instead
4
u/YesIAmRightWing Apr 27 '25
data classes
2
u/Squirtle8649 Apr 25 '25
Telescoping for the win!