Advertisement ยท 728 ร— 90

Posts by Saket Narayan

You're writing Ruby these days? ๐Ÿ˜„

1 week ago 1 0 0 0

Oh nice, could you share a link?

1 week ago 0 0 1 0
Video

I built a tiny IntelliJ IDEA plugin for something that had been bothering me for years github.com/saket/intell...

1 week ago 28 9 5 0

๐Ÿ’š

1 week ago 0 0 0 0

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!

1 week ago 15 2 1 0

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.

2 weeks ago 8 0 1 0
Post image Post image

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

2 weeks ago 10 3 1 0

TIL about android's "time to take action" accessibility setting

1 month ago 2 0 0 0
Advertisement
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
}

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.

1 month ago 40 11 7 0

I like it. It's like turbine, but for compose ui!

1 month ago 3 0 1 0

The answer was no, so I'm building this myself as v2 of github.com/saket/swipe. Here's a first draft:

1 month ago 17 1 0 0

This is useful, thank you!

1 month ago 0 0 0 0
Post image

Did Google ever release this swipe component as part of Material Design?

1 month ago 0 0 1 1

Good thread. OSS at most companies is really just a handful of dedicated individuals that the company loves to advertise but constantly threatens

1 month ago 36 4 1 0

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.

1 month ago 7 1 0 0

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.

1 month ago 82 25 2 1

๐Ÿ˜ž

1 month ago 2 0 0 0

You'll be so dearly missed Chris! Sucks that this is happening.

1 month ago 2 0 0 0
Advertisement

I'm still here, but I can't tell if that's good or bad. ๐Ÿ˜”

1 month ago 11 0 1 0

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.

1 month ago 56 5 5 1
Post image

CSS-inspired media queries in Compose UI ๐Ÿ‘€

android-review.googlesource.com/c/platform/f...

1 month ago 3 2 0 0

Sounds like a great idea. Do you have a video of what this looks like in action?

1 month ago 3 0 1 0

I think I like it.

If anyone else is looking for the setting: Preferences โ†’ Editor โ†’ Appearance โ†’ Use smooth caret movement.

2 months ago 2 0 1 0

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...

2 months ago 13 1 0 0

๐Ÿ™Œ

2 months ago 0 0 0 0
Post image Post image

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.

2 months ago 21 0 3 0

They look great! How did you create them?

3 months ago 0 0 1 0
Advertisement

Are there any theme parks with decent food anywhere?

3 months ago 1 0 1 0

I've seen this so many times that I no longer let LLMs run any command without permission.

3 months ago 5 0 0 0

I'm curious btw, does microlink generate your link previews during hugo's build time?

3 months ago 1 0 1 0