24
u/AcceptableRole114 Jul 09 '23
Imo, they choose to use compose and swiftUI is for faster development. As an Android and iOS developer I have use all kinds those frameworks but compose (and swiftUI for iOS) is the fastest in term of creating good looking UI.
6
u/FrezoreR Jul 09 '23
Yeah, it's way less frustrating as well. Jumping to and from XML is just a pain and then having to find references for all your views.
2
u/Sethu_Senthil Jul 10 '23
I actually kinda disagree a bit. SwiftUI is AMAZING in it works. However most of the features require higher iOS target versions which won’t be feasible , and a lot of times if I want to customize something even just a little bit, I’ll need to rewrite the entire view myself.
I find Flutter (and even RN) to be more flexible when it comes to UI. In my latest app , which was supposed to be an iOS only app I used a combination of both Flutter and SwiftUI in order to rapidly make a good ui.
But again it really depends on your resources, imma solo dev and meta has hundreds of devs who are already specialized in different stacks
3
u/Zhuinden Jul 10 '23
SwiftUI is AMAZING in it works. However most of the features require higher iOS target versions which won’t be feasible , and a lot of times if I want to customize something even just a little bit, I’ll need to rewrite the entire view myself.
I've been hearing that iOS devs still use UiKit because some things are extremely difficult to do with SwiftUi, but this is just 2nd hand info I have no idea personally I don't code for iOS
4
u/armashuski101 Jul 10 '23
The drug dealer doesn't consume his own drug.
The idea of RN sounds good but once you actually work with it... you will understand.
5
u/CompetitiveAnt2590 Jul 09 '23
Facebook Marketing team must have a big budget for it to be astroturfing even in this sub.
3
u/FrezoreR Jul 09 '23
How so? Although I'm not questioning their budget 😅
1
u/CompetitiveAnt2590 Jul 09 '23 edited Jul 09 '23
This same post is being spammed here and in other places.
This was published here only 2 days ago: https://www.reddit.com/r/androiddev/comments/14skdld/threads_is_written_almost_completely_in_jetpack/
Let's see when the next spam is going to be.
3
u/FrezoreR Jul 09 '23
I don't think that's meta marketing machine, but rather people excited about it being in compose.
-1
u/Zhuinden Jul 10 '23
but rather people excited about it being in compose.
what's to be excited about? I've been reading that Compose is "the most used Android library to this date, almost every app uses it, it is the future of Android development".
Did the ChatGPT scambots lie to me? 🤪
3
2
u/Guitar-apps Jul 09 '23
Compose apps don't appear to be getting pushed by Google even though it's supposed to be stable now.
4
u/FrezoreR Jul 09 '23
If you looked at IO this year I think it was clear they push it. Wear OS only has a compose material library for one.
They were also a big part of kotlinconf. Talking about how its used internally.
So, I'd say I disagree, but it's a fine line to walk since you don't want to alienate the ones that are not using compose.
-1
u/Zhuinden Jul 10 '23
So, I'd say I disagree, but it's a fine line to walk since you don't want to alienate the ones that are not using compose.
I don't think that's really something they care about, Google has been quite adamant with pushing Compose in such a way that they pretend every app written before 2021 is effectively DOA if it's using XML views.
Unless Google brings out a second OS where Compose directly maps your composables to both Android and that mysterious second OS, the idea that Compose "is the future and essential for new applications" is fully out the window, completely wrong, effectively fake ads.
3
u/LongjumpingKey4644 Jan 22 '24
Google controls the entire Android ecosystem. If they decide compose has and always will be the only way to write an Android app then so shall it be.
3
u/Zhuinden Jan 22 '24
Google controls the entire Android ecosystem. If they decide compose has and always will be the only way to write an Android app then so shall it be.
But that is just not true. Android OS provides Views, even Compose is reliant on using
ComposeViewunder the hood.Worst case they'd make the LayoutInflater deprecated and throw an exception if you use it, but that is unlikely to happen.
So the next "bad" thing they can do is... not make new AndroidX UI components using Views without Compose, which is like, "okay, you do you" I've had to implement UI components via custom and not material for the longest time anyway.
Google thought that their issues with creating view-based UI components is a global issue, so they were hoping Compose would be "the savior everyone wanted" but the adoption rate was still just 24% in May 2023, almost 2 years of the framework being released "as stable (lol)".
-4
u/Guitar-apps Jul 10 '23
Just from personal experience my compose apps don't get half the downloads that my XML ones get.
3
u/FrezoreR Jul 10 '23
How is that related to google pushing compose or not?
0
u/Guitar-apps Jul 10 '23
Sorry, I think we're at cross purposes. I meant apps built with compose don't seem to be getting pushed.
1
u/Zhuinden Jul 10 '23
Why would Google/Play Store push apps to be downloaded just because it has Compose in it?
1
1
u/Guitar-apps Jul 10 '23
Interesting question though have your compose apps done as well as your XML apps?
2
u/Zhuinden Jul 10 '23
Interesting question though have your compose apps done as well as your XML apps?
One of the Compose app we shipped is fairly unused, the other one is internal, so it's hard for me to answer this question.
One of them just didn't ship because there were too many bugs though and then development was effectively sabotaged and stolen via internal company politics within the customer's firm, that wasn't fun.
1
u/FrezoreR Jul 10 '23
Oh I see. You mean that apps written in it are not getting pushed? If that is the case I don't think Google play looks at that.
1
1
1
-18
Jul 09 '23
Eh, using Compose doesn't necessarily make it high quality. Lots of people who have that misconception.
17
u/Ironthighs Jul 09 '23
Much easier to make high quality with Compose though than React Native.
1
u/_SyRo_ Jul 09 '23
Why?
React Native and Compose are basically the same, both inspired by React approach
I worked with both, and I don't see much difference
2
u/FrezoreR Jul 09 '23
Same goes for java vs kotlin, but some concepts in compose just makes it easier to write high quality UI. You'd be fooling yourself if you don't think the Android UI team took learnings and improved on that API.
-4
u/barcode972 Jul 09 '23
Reactive programming usually has way less bugs than declarative program
4
u/lnkprk114 Jul 09 '23
Isn't Compose reactive and declarative though?
0
u/barcode972 Jul 09 '23
How can it be both?
6
u/Pzychotix Jul 09 '23
I think you're mixing up declarative with imperative? Compose is both reactive (through the use of
States) and declarative (through the use of Composables that you use to "declare" what you want).Regular views are "imperative", since you have to manage the state and change of the views yourself to get what you want.
7
Jul 09 '23
You can do reactive programming without Compose. I've been doing reactive programming with XML Views for a long time now, nice high quality apps with good performance.
3
u/barcode972 Jul 09 '23
No1 said you can’t make quality apps with xml views. Compose is just faster and easier to work in as a team
-8
u/Zhuinden Jul 09 '23
Compose is just faster and easier to work in as a team
Until you need to hunt down recomposition counts
-1
u/barcode972 Jul 09 '23
Sounds more like a you issue
8
u/Zhuinden Jul 09 '23
Sounds more like a you issue
I find that people claim this and then in the end end up with runtime performance issues because they literally don't understand what I'm talking about, but also don't have the foundational understanding of argument stability and recomposition to actually understand what I'm talking about.
So instead they start making stupid ad-hominem attacks to justify and mask their ignorance of the subject, with the premise to hope to feel like they're somehow superior and very smart, very intelligent, very emotionally intelligent too, they demand 7 medals for being amazing people.
4
u/Ironthighs Jul 09 '23
If anyone is having trouble with performance and it's suspected that it might be due to recomposition counts, you can use the Layout Inspector tool to help identify problem Composables: https://developer.android.com/jetpack/compose/tooling/layout-inspector
2
u/Zhuinden Jul 10 '23
Reactive programming usually has way less bugs than declarative program
Nothing stops you from applying reactive programming to view-based apps
-3
-2
Jul 10 '23
[removed] — view removed comment
3
u/Zhuinden Jul 10 '23
Great information to listen to that Threads is the usage of Compose! It's interesting to see an increasing number of apps adopting this modern UI toolkit. Compose permits for declarative and reactive UI development, making building and retaining complex UIs less difficult.
and it is exceptional to peer how tools like Chat GPT can guide and encourage creativity.
No wonder these comments read like they were generated by ChatGPT
93
u/well___duh Jul 09 '23
Surprised they didn’t use React Native. Which makes me wonder how much confidence Meta still has in RN if they’re not using it for new projects