My dearest people! I want to organise a Jetpack Co...
# compose
j
My dearest people! I want to organise a Jetpack Compose workshop in my company, and of course I mentioned that by using Jetpack Compose, our developers will be more efficient at writing code. Of course now I am being asked to quantify this efficiency boost 😄 and I was wondering: does anyone have any interesting source/statistics on the topic of developer productivity and the usage of Jetpack compose? I can think of difference in line count for jetpack compose in Kotlin vs XML layouts. Also I was thinking about a reduction of complexity, as things like animations and state handling are easily achieved using Jetpack Compose. I see this article is of interest: https://android-developers.googleblog.com/2022/03/play-time-with-jetpack-compose.html, I was hoping perhaps one of you may have also something of interest 🙂 thanks!
d
I had to go through this kinda thing too. It was easier to just convince my manager, by convincing his right hand man that Google is going Jetpack Compose first and support for the old view system is dying. Metrics on this topic are all subject to the team and the project you are integrating into. I found once people actually got their hands dirty with Compose they understood how great it is.
m
I focused a lot on the faster developer feedback cycle to help quantify an efficiency boost. I used gradle profiler to benchmark a layout resource change in a module (guide). Then you can compare those results to the feedback cycle with Compose, which is often essentially instant with things like Live Edit. There are probably some high-level measurements that can be done by deploying and navigating to a screen vs using Compose's deploy preview too.
I'm not a huge fan of using line count to measure efficiency, but there is a probably a good story to be made comparing lists with recyclerviews with lists in Compose. If you have a tool for measuring complexity like sonarqube, then a comparison with that would be interesting.
j
Thanks for the answers (I switched laptops and only now fired up slack and see your answers 🤐). I will whip up some nice story indeed, which in this case will highly depend on my personal experience (which shockingly is very positive 🙂 ). Also that this is the direction into where Google is going, is a good argument!
👍 1