You're writing Ruby these days? ๐
Posts by Saket Narayan
Oh nice, could you share a link?
I built a tiny IntelliJ IDEA plugin for something that had been bothering me for years github.com/saket/intell...
๐
After 2.5y of development, github.com/saket/teleph... is nearing ~600 screenshot tests that verify all possible combinations of usages. It's one of the most thoroughly tested UI libraries you'll find for Android. Shout out to my friends at emulator.wtf without whom this wasn't possible!
I get that Google optimized for customizable OEM skins, but I wish they didn't look so bad. I almost always disable device skins -- the emulator looks better without them.
It's interesting how clearly Google vs Apple shows up in something as small as virtual devices frames.
iOS simulator: sharp, natively rendered
Android emulator: transparent PNG, rough corners with jagged edges
TIL about android's "time to take action" accessibility setting
A screenshot of code that reads: // Create a Recomposition Tracking Rule @get:Rule val composeTestRule = createRecompositionTrackingRule() @Test fun incrementCounter_onlyValueRecomposes() { // Perform an action composeTestRule.onNodeWithTag("inc_button") .performClick() // Assert that Composables change like you expect composeTestRule.onNodeWithTag("counter_value") .assertRecompositions(exactly = 1) // Or assert that they remain stable composeTestRule.onNodeWithTag("counter_title") .assertStable() // asserts recompositions = 0 }
Today Iโm open-sourcing Dejavu!
Testing UI performance in Jetpack Compose is frustrating. We profile and watch tools, yet regressions still creep in.
I built Dejavu to make recomposition behavior something you can actually test.
I like it. It's like turbine, but for compose ui!
The answer was no, so I'm building this myself as v2 of github.com/saket/swipe. Here's a first draft:
This is useful, thank you!
Did Google ever release this swipe component as part of Material Design?
Good thread. OSS at most companies is really just a handful of dedicated individuals that the company loves to advertise but constantly threatens
Please don't boycott OSS... Follow the authors, maintainers, and contributors to them, as many of them will continue to support their projects regardless of the company they go to. Also, if you can, sponsor these individuals too! Many of them have links for sponsorship on their Github profiles.
What happens to Square / Block Android OSS projects post layoffs?
Let's start with some context
OSS at Square is mostly a happy accident. Jack hired Bob, who's job was attracking world class engineers, and he did that through talks & OSS.
๐
You'll be so dearly missed Chris! Sucks that this is happening.
I'm still here, but I can't tell if that's good or bad. ๐
Most of you have heard about Block's 40% layoffs by now, but the numbers are even worse. Engineering was hit harder, we've lost close to 70% of our engineers. Our leadership is plagued by false promises of "intelligence". The company you once knew as a prolific OSS contributor no longer exists.
CSS-inspired media queries in Compose UI ๐
android-review.googlesource.com/c/platform/f...
Sounds like a great idea. Do you have a video of what this looks like in action?
I think I like it.
If anyone else is looking for the setting: Preferences โ Editor โ Appearance โ Use smooth caret movement.
Looks like Compose UI is finally addressing a long-standing issue on Android where the experience of scrolling nested lists hasn't felt as good as on iOS.
issuetracker.google.com/issues/26962...
๐
After six beautiful years in Kitchener-Waterloo, we are moving to Seattle. Grateful for the people and memories that made this place home. Hoping it feels like home too.
They look great! How did you create them?
Are there any theme parks with decent food anywhere?
I've seen this so many times that I no longer let LLMs run any command without permission.
I'm curious btw, does microlink generate your link previews during hugo's build time?