Wes AlvaroState vs StateFlow in ComposeWhen writing a ViewModel for a Compose UI, should I use Compose States or the more general-use Kotlin StateFlows? I recently asked myself…Jun 13Jun 13
Wes AlvaroAndroid Dipxel PerfectThe Android DP unit is deceivingly simple. In the most basic case, 1DP = 1PX.Dec 6, 2023Dec 6, 2023
Wes AlvaroMockito’s sinister silent stub secrettl;dr: Do not start your stubbing chain with Mockito’s when.Mar 2, 2023Mar 2, 2023
Wes AlvaroShipping gear around JapanI have two sports I enjoy: scuba diving and snow boarding. The problem is that renting equipment is expensive and rental equipment is……Oct 15, 2022Oct 15, 2022
Wes AlvaroAnnotations, how do they work?Annotations are something most if not every Java or Kotlin developer uses but how they work can still be a mystery. I thought I more or…Oct 6, 2022Oct 6, 2022
Wes AlvaroFontMetrics for Spanning TextSpanned Strings are very powerful in Android. ReplacementSpans are perhaps the most powerful; they allow for inserting images or highlights…May 17, 2022May 17, 2022
Wes AlvaroMigrating from SmartThings to Home Assistant on the Synology DS220+I’ve been unhappy with Samsung SmartThings for a while. It’s buggy, slow, hard to configure, pretty limited in customization, and…Jan 16, 20221Jan 16, 20221
Wes AlvaroSwitching from iTerm2 to KittyI’ve been a long-time, hardcore user of iTerm2 on Mac. One of the big reasons I love using my Mac everyday is because of iTerm2’s plethora…Sep 15, 20213Sep 15, 20213
Wes AlvaroAdding Dividers in Android LayoutsYou’ve probably wanted to separate the items in your Android list-type layouts (e.g. LinearLayout, RecyclerView, and ListView) on more than…Aug 2, 2021Aug 2, 2021
Wes AlvaroDigging into logcat on-deviceWe all know how to run adb logcat and some of us might have used a flag or two or piped the output to grep but what do we do if we need to…Jun 22, 2021Jun 22, 2021