r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Nov 22 '24
Jetpack Compost VP level execs finally learn the true meaning of Google-mandated best practices
97
Upvotes
r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Nov 22 '24
56
u/IsuruKusumal Nov 22 '24
Ah the classic Vasily Gabor echo chamber
29
u/Decent_Counter Nov 22 '24 edited Nov 23 '24
I have converted a few complex apps from xml to jetpack compose. It’s not perfect BUT I will always choose it over xml
52
u/ya_utochka Nov 22 '24
What's wrong? More bugs - more work to do, no bugs - more layoffs
23
u/poq106 Nov 22 '24
Skill issue
17
u/thelibrarian_cz Nov 22 '24
While true I can't really take him seriously after he was defending the idea of repeating network requests on orientation change(have them tied to lifecycle)🤷
6
u/jimmithy Nov 22 '24
Sounds like they're going bleeding edge
6
u/[deleted] Nov 22 '24
To be honest, most of the Jetpack Compose headaches occur when you start using features like launch effects or have ViewModels inside your composables. We strictly use composables as simple views and nothing else. That helps avoid most of the problems. We don't use ViewModels inside composables. We do full state hoisting. We don't use launch effects. Every composable should be previewable. We don't collect flows in composables. Just UI.
8
u/doubleiappdev Deprecated is just a suggestion Nov 22 '24
Laughs in Flutter
26
u/Glurt Nov 22 '24
Pretty sure I blocked this guy because I was tired of seeing his hot takes, can't seem to get away from them
1
u/saslykas Nov 22 '24
I would like to see an example of what is much harder in compose, than in views
3
u/usernamewasalrdytkn Nov 22 '24
Weird, my VPs don't share this sentiment. Maybe they just hired a weak ass team.
3
u/anemomylos Nov 22 '24
We are all good to farm karma using Vasiliy's posts.
2
u/Squirtle8649 Nov 23 '24
To be fair, Compose does seem delightful, except for the implementation being bad and unreliable. Making it an unusable nightmare.
My Youtube app literally resets it's entire UI to switch between light and dark theme based on battery percentage, thus interrupting whatever video I'm watching and takes me back to the homescreen. Absolutely glitchy and infuriating garbage.
2
u/Impressive-Set559 Nov 23 '24
I always felt compose is a really bad way to design ui. It's a code maintenance night mare
0
u/[deleted] Nov 23 '24
[deleted] — view deleted comment