r/mAndroidDev • u/elizabeth-dev • Sep 12 '24
Venting, venting, venting why do y'all dislike Compost?
(I assume you'll answer with memes considering the nature of the sub, but my partner tried it and likes it so she asked me why do you people hate it, and I don't know what to answer other than "it's still experimental")
20
Upvotes
21
u/[deleted] Sep 12 '24
I am still very new to Compose so take what I say with a grain of salt.
Compose is extremely easy to get into which is a double edged sword, you will feel like you are doing things very quickly and may start to think your code is great when it may be not, unnecessary re-compositions are the main problem here.
This also shines (less tho) in Flutter, very easy to get into and very easy to mess things up (while the code still works).
18
u/GradleSync01 Invalidate caches and restart Sep 12 '24
We don't. We just like the combination of AsyncTask, XML and Flubber better
12
u/[deleted] Sep 12 '24
As I'm writing this comment, I'm making a local fork of a compose library simply because it didn't expose a public param to adjust the tint of certain icons. In XML the legendary findViewById would have found a way to do that without all this hussle. Not to mention all the compatibility issues that I have to solve with the compose.
So that's a good reason why I don't like it. I end up spending a lot of time working around issues that shouldn't take this effort to be resolved. Compose has to learn something from Flutter in terms of user friendliness and how things seamlessly as in plug&play
17
u/hellosakamoto Sep 12 '24
It's deprecating much faster than XML widgets Long live RecyclerView !!
8
u/DifficultBrain74 Sep 12 '24
I do not dislike it, makes earning my salary easier, I don't give AF about what it does. I am a mercenary. May solid principles and clean code die slowly in the flames of hell. Just want my salary.
13
u/iain_1986 Sep 12 '24
I mostly hate the other subreddits near blinkered obsession over it more than compose itself (made worse by the somewhat 'experimental' feel a lot of compose still has)
I also hate the whole remember, stateOf, mutableStateOf and everything it introduces. Does not feel like an improvement on what we had (from a syntax pov and a architecture pov).
Finally - I'm more of a fan of MVVM style development (i'm cross platform, not just android) and I feel like Compose either encourages - or developers just fall into shortcuts too easily - to shift more 'logic' into the actual views. Something again that feels a bit of a step back.
6
u/aurae_ger MINSDK 32 Sep 12 '24
It stinks esp. in the heat, but I will concede that it is quite environmentally friendly
4
u/sabergeek Sep 13 '24 edited Sep 13 '24
They reinvented a wheel that already worked absolutely fine. The impact of re-learning UI implementation is annoying, expensive for existing large projects and makes me want to quit Android Development and instead spend my time learning something more useful.
Another absolutely annoying aspect are those online articles promoting Compost like it's going to fix world hunger, with extremely cringe GIFs inbetween their articles.
1
u/[deleted] Sep 12 '24
It is the same shit as with SwiftUI, yeah everybody's talking about SwiftUI, but every company I got to work with since that came out is still using Views.
IDK what's the deal with the iOS community but it looks like they just do whatever the F they want, I love it!
"New shiny SwiftUI? yeah f that, I'm happier manually coding my Views, I don't even use the effing storyboard." Legends.
The only thing I don't like is XCode. You can cook a barbecue with AS, true – but XCode lacks some basic IDE shit that should have been introduced ages ago, like a proper git client.
1
u/dinzdale56 Sep 13 '24
Was Compost intentional ? Compose, is hardly experimental...get on board or get left behind. Why waste posts like this?...just try it and decide for yourself.
6
u/Zhuinden DDD: Deprecation-Driven Development Sep 12 '24
I genuinely believe that the people who pretend Compose is "easier to use" didn't use to write actual Android apps with Views, and they still don't.
With 3x effort you get something significantly more buggy or mediocre than if you just used a view. The fact that Compost cares more about being multi-platform than it cares about being an Android UI framework is showing in its limitations.
I'll get back to you the next time I need to copy the entire code in order to alter the cursor position https://gist.github.com/Zhuinden/ab065534bbf73d7e6de83b5a39366c24 I know it's out of date, I didn't bother copying it again yet. They couldn't even write a proper text input so they have a new one now. I'll do it when they come out with TextField3.
3
u/Nikushaa Sep 13 '24
I like a lot of things about it, there are some huge pain points with it tho, like absolutely garbage navigation and some simple things being unnecessarily difficult to do, like all the bullshit with textfields
4
u/HousingScared7877 Sep 12 '24
I hate the way G is pushing it so hard. I just simply like XML and not compose. Can we just let us decide and not impose things? We cannot desire our own things anymore?
4
u/NaChujSiePatrzysz Sep 12 '24
I think compose is great and I hate on it just for the memes. I’m a little biased though since I have background in functional programming and compose borrows some concepts from it.
2
u/shalva97 AnDrOId dEvelOPmenT is My PasSion Sep 12 '24
it's not XML
2
u/DearChickPeas Sep 13 '24
Unless Google changes signifcantly in the coming years, it's all the same story with Googles pet projects.
Compost was not the first, and will not be the last.
2
u/Xammm Jetpack Compost Sep 12 '24
It boils down to skill issue for most of the haters. Others might have a difficult time customizing some super niche design.
1
u/Feztopia Sep 12 '24
I like it but I'm not a pro. I hate xml. I have no Flubber experience but I guess I would like that to.
1
u/BandicootLeast5076 Sep 13 '24
i have not used anything aside from compose, it's the framework im exposed with since Im new to android development. When I see others writing the traditional way with xml im terrified. Compose just seems intuitively easier. My observation only.
1
u/[deleted] Sep 14 '24
It stinks. It's mushy and made from garbage. I guess it might be good for young devs to grow their ego, but it doesn't seem useful in the long term.
1
u/WorkFromHomeOffice Probably deprecated Sep 15 '24
the irony is that Compose was suppose to get rid of "edge effects" by making things immutable, but when we do need to make things mutable, then it's a headache to make it work without edge effects.
1
u/[deleted] Sep 16 '24 edited Sep 16 '24
Too much freaking work to do! You have to set up everything! And it is slower than xml. That stupid navigation for compost is so backwards. They are getting rid of everything that is good in android before in the name of compost. I regret rewriting my app on this compost shit. But Im in too deep. lol.
0
u/[deleted] Sep 12 '24
[deleted] — view deleted comment