With #Java's evolution (discriminated unions, pattern matching, virtual threads), are #Scala / #Kotlin still worth it?
Scala & Kotlin have a culture of doing things at compile-time, the former more so than the latter.
This yields safety & expressiveness, and is reflected in features that Java will never implement, in platforms that it will never target well, or in paradigms it will never embrace.
Java is still Java, and you're stuck with Spring, Hibernate, and Jackson, sorry.
I wrote about why Future and the async/await programming model is error-prone and obsolete, the industry moving away from it (e.g., Go, Kotlin's Coroutines, Project Loom):
This week has been pretty busy at work. Hopefully it has resulted in absolutely awesome results!
✨ Cold start up time for Element X Android has significantly improved from 3-4sec to 100-150ms for accounts with 1000, 2000 or even 4000 rooms (≈30x speed up). That’s awesome! ✨
I’ll explain tomorrow how we did that. Async Rust and immutable data types simply rock.
Has anyone managed to implement any iOS delegate protocols from KMM?
Given most will/did delegate methods have the same names and argument types (application for application(willChangeOrientation:…) and application(didChangeOrientation:…)), Kotlin gets confused when I try to implement both, saying I'd already done ...will… when I do …did… .
If you're interested in #Kotlin, https://kotlinconf.com on May 23-24 next year will be a good excuse to visit Copenhagen. It's the same venue as in 2019 which was quite nice. And don't forget the best way to get the ticket is by submitting a talk https://sessionize.com/kotlinconf-2024 🙈 (As always, you don't really need to be an expert in the field to do a good talk!)
Big Database Post: #Room#kotlin#android
I have my basic App. It allows Users to record details of Quests for #TTRPG.
It uses a single table, with mostly String fields.
I would like to expand, so that each field could hold more data.
e.g. Location ("The Swamp of Doom", "Wizard's Tower") could be it's own table, with each entry having more info.
I could write a sprawling SQL-Helper class to convert everything back and forth to the DTOs used by UI, but isn't Room meant to help?
more...
Hi, I'm somewhat new to Kotlin programming and so far it's becoming my favorite language. I was browsing some Kotlin projects when I found Komac, which recently switched to the Multiplatform target from only having the JVM target....
What I haven't liked so far from kotlin is that is so tied to android that you hardly find a kotlin library for kotlin and most of it is specific for android
at least on my naive searches so far
#Gradle supports different options to write plugins. This is good, because it gives you the choice to use what fits your context. Any you should always write plugins - if only to organize your project's build configuration.
As usual, I still can't figure this code!
I tried writing my own system, then found that ExposedDropDown exists.
But can't find examples of what I want to do.
Has anyone seen "Choose from List, or type New entry" ? #kotlin#jetpackCompose
Kotlin JVM vs Multiplatform
Hi, I'm somewhat new to Kotlin programming and so far it's becoming my favorite language. I was browsing some Kotlin projects when I found Komac, which recently switched to the Multiplatform target from only having the JVM target....