Top Tweets for #UIAction
One big discussion that we have in #Android is between passing individual functions to composables that need to make action, or passing #uiAction with a sealed class of possible actions.
Using individual functions for actions is:
👉 Simple, as we need no extra classes.
👉 Safer, as each composable receives only what is needs.
😨 Can badly scale, as every new action might require passing it through many components, and every argument change might require changes in many signatures.
On the other hand using uiAction:
👉 Scales better, as we do not need to pass all functions separately, and maintain their definitions.
👉 Aggregates all actions in one place.
😨 Adds a lot of new classes to our project.
😨 Reduces safety, as many composables receive functions that allow making actions they do not need. That problem can be mitigated by using sealed interfaces to define groups of actions, but that adds even more actions, what makes project harder to understand and reason about.
💡 It is often recommended to choose the first option when we expect simple screens, and the second one for complex, evolving screens. Which one do you prefer❓ Which one do you use❓
Neither of those two approaches deals well with screens that have a lot of state-dependent actions.

Check out Jesalyn's first blog post on #UIAction redirects in #ServicePortal! https://t.co/9BP55HUeR9
#womenNowDev #ServiceNow #ServiceNowDeveloper #SNDevs
Last Seen Hashtags on Sotwe
chudai
Seen from Germany
中里琉星
Seen from Japan
friend_mom_x
Seen from India
nolimit()filter:native_video
Seen from Mexico
รับงานหนองคาย
Seen from Thailand
母驴
Seen from United States
wlw
Seen from Korea
olderwomen
Seen from Argentina
desahancewek dipaksa
Seen from Indonesia
nolimit momson() +filter:native_video
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
241M followers

Barack Obama 
@barackobama
119.2M followers

Cristiano Ronaldo 
@cristiano
111.8M followers

Donald J. Trump 
@realdonaldtrump
111.8M followers

Narendra Modi 
@narendramodi
107M followers

Rihanna 
@rihanna
98M followers

NASA 
@nasa
92.2M followers

Justin Bieber 
@justinbieber
91.2M followers

KATY PERRY 
@katyperry
88.3M followers

Taylor Swift 
@taylorswift13
82.2M followers

Lady Gaga 
@ladygaga
73.7M followers

Virat Kohli 
@imvkohli
70.9M followers

Kim Kardashian 
@kimkardashian
70.1M followers

YouTube 
@youtube
68.7M followers

Bill Gates 
@billgates
64.3M followers

Neymar Jr 
@neymarjr
63.8M followers

The Ellen Show
@theellenshow
62.4M followers

CNN 
@cnn
61.8M followers

Selena Gomez 
@selenagomez
61.4M followers

X 
@x
60.8M followers

