I created a branch experimentally converting a pro...
# compose
l
I created a branch experimentally converting a project at work from Views to Compose to show the rest of the team. I’m liking the diff numbers
+17,613 −188,973
. Same functionality. Looks like Compose could help us get this repo to a much more manageable size.
s
Damn that sounds like a lot of work for something experimental 😅 I can’t even imagine how you can get down to 10% of the numbers, what were those XML files even doing 😂 I remember this post that was describing another case like this. Certainly feels like a net positive in general!
l
I think a fair bit of it was docs. I regenerated the docs (I wrote docs for my compose code too), but Compose allowed me to get rid of a lot of complex view, adapter, helper, etc. classes.
I remember when I saw rememberTransformableState, and I could finally get rid of the Pan and Zoom logic I wrote about a year ago.
s
rememberTransformableState
I didn’t even know this exists 😅
l
I didn’t either until I started researching how to convert my code to compose. I was very skeptical at first. There was no way I only needed one function…