Saúl Molinero (@_saulmm) header
Saúl Molinero (@_saulmm) profile picture

Senior Software Engineer by trade. Still.

Vigo, España
Joined May 2012
Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)Photo by Saúl Molinero (@_saulmm)
Two mutables don’t make a right - Zach Klippenstein - Why you shouldn't use mutable objects in your State holders dev.to/zachklipp/two-mutable…
6
842
“The Diffing Dilemma! All about diffing with LazyLists!” by Garima Jain medium.com/google-developer-…
1
16
2,824
[...] "It is important to emphasize, that SharedPreferences start reading from the disk the moment the object is initialized according to the documentation of 'context.getSharedPreferences'
1
251
Well explained. How inline functions affect recompositions
🚀Recomposition in Jetpack Compose 2 🚀 🧵After my latest thread related recomposition, I had a time to investigate more and here is second part of recomposition series. ⬇️ 1⃣ Recomposition definition again: Recomposition is the process of calling your composable functions again when inputs change. and here is simple example I think this part is straightforward: *⃣ Click Button *⃣ The count state increments. *⃣ The change in count triggers the recomposition of our top-level Composable. 2⃣ Let's wrap our state within another Column composable and observe the logs: Interestingly, even if the count state is defined in the Column, and there's no state within the Counter scope, the entire scope still recomposes. But why?⬇️ 3⃣ Let's check the implementation of Column composable The reason for the surprising recomposition behavior? Column is defined as an inline function with content passed as a lambda. For those unfamiliar with how inline functions process lambdas, let's remember together. 4⃣ Lambdas passed to inline functions are directly inlined (or incorporated) into the calling function. Post-compilation, it looks like this: 5⃣ Wrap-Up: *⃣ In Jetpack Compose, Box, Row, Column, and ConstraintLayout are inline composables. *⃣Content passed to these composables gets incorporated directly into the calling function, expanding the recomposition scope. Being aware of this behavior helps in efficiently structuring your composables and preventing unintended recompositions. 🔥 Keep following for more on Jetpack Compose!
5
893
Rx to Coroutines Concepts, Part 4: Cold Flows - @billjings. Such a well written article. code.cash.app/rx-to-coroutin…
2
Notification trampoline restrictions-Android12 - link.medium.com/pT7kV30aWkb
1
2
Hidden features of Android Studio 😜
1
1
24