shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

285
active users

#kotlin

1 post1 participant0 posts today

So, question for the Kotlin crowd: I have a process that is async (upload of a file), and that needs to be run a bunch of times. If I start each upload in a loop, I cannot really cancel or observe, bcs it is retrofit/okhttp who is managing the async stuff and the loop ends fast.
It is entirely possible that every now and again, I have to upload a lot of those files, and not being able to cancel is not acceptable.
So, what are my options?
#BuildInPublic #Android #Kotlin #async #FollowerPower

The program no longer crashes and the fix was simpler than I thought.

Instead of comparing rounded doubles (what a silly idea) I did the proper thing, which is abs(a - b) < epsilon. A lot of times 🙂 Takes maybe half second to generate the design. Then I can pan, zoom and rotate to find a screenshot I like.

I'm thinking that the lines that end in lonely places should end with a tiny knot. I may try that next.

This iteration has been a big challenge: Generate shapes, get their concave hull, pack those hulls, calculate the transformation matrices mapping the original hulls to the packed ones. Apply those transformation matrices to the original shapes. Finally play with a 2D camera to find the right shot.

And I still have an interesting rounding bug which doesn't fit in this description :)

Hey I'm still looking for work.
I've applied to a lot of places in my area and I'm getting nothing.

I'm a programmer at heart, but I've also been looking for regular entry-level jobs because there haven't been any coding positions open at my level as far as I could tell.

If you can offer me a job, it might save my butt. And if you can't offer me a job, could you at least share this post?

I live 30 minutes away from Bellevue if that helps.

I am very lucky to be working as a freelancer on a project that I love & use in all my apps: #TelemetryDeck. 📡

Recently, I've had the pleasure of contributing my own ideas to the project. Today, I'm happy to introduce a new feature that's been long awaited: Duration Signals!

🔗👇 (1/2) 🧵
telemetrydeck.com/docs/article

telemetrydeck.comTrack User Engagement with Duration Signals in TelemetryDeck | TelemetryDeck
More from TelemetryDeck

I've been working on a solo #Android and an #iOS project for the last couple months. Since I am doing the work of 2 teams by myself, I have been leveraging #AI for assistance, especially since I am still only novice to intermediate at declarative programming, like #SwiftUI and #Kotlin. I primarily use Claude, but will throw a question at Gemini in Android Studio when I'm being lazy and want really bad answers. As of this week, I have reached the conclusion that the use of AI is no longer even saving me time. The time I had saved by not having to comb through dubious stack overflow questions, various medium posts, or video tutorials is now overshadowed by the time I spend providing framing to the AI. As the complexity of the project has increased I have to spend increasing amounts of time contextualizing for the AI what architecture patterns to use, whether or not to use view models, to exclude or include certain frameworks, or utilizing modern patterns that do not conflict with older implementation strategies. Maybe AI will continue to grow and improve in such ways that it can make these subjective implementation decisions consistently. For the time being, I'm not going to go switch careers quite yet 🙄

#Android friends, how do you unit test your #JNI / #KNI code? Do you write extra KNI glue just so you can trigger internal native methods that call back out into #Kotlin?

Do you restrict yourself to only integration tests and black-box tests and just *not* unit-test this stuff?

All solutions we’ve tried/considered so far kinda feel bad.

(I'm mostly dealing with C/C++ and Kotlin)