News for hackers. Stuff that matters.
Re:James Gosling Interview by glhaynes on Thursday August 12, 2021 @11:31AM (#28157587)
Has it really? (Totally honest question, I don't follow that space well.) If Some Random Company is starting a new Android app today, is it more likely to be in Kotlin than Java? That's cool, if so.
Re:James Gosling Interview by binkHN on Thursday August 12, 2021 @11:39AM (#28157685)
Yep! Been this way for a little while now. More detail at https://developer.android.com/kotlin/first...
Re:James Gosling Interview by blibble on Thursday August 12, 2021 @11:50AM (#28157813)
as someone who's been writing Java for Android since 1.0 (but not much recently)

my main pain point with it was more the API rather than Java (e.g. the activity lifecycle, the 20 layers of compatibility stuff, contexts everywhere)

did this clear some of that up?

Re:James Gosling Interview by binkHN on Thursday August 12, 2021 @12:00PM (#28157936)
Not really. It just another language, but, IMHO, threads have gotten A LOT better through Kotlin’s Coroutines. That said, the libraries have gotten a lot better and the new UI toolkit, Compose, addresses a lot of shortcomings, but it’s still early.
Re:James Gosling Interview by ptx on Friday August 13, 2021 @05:21AM (#28166986)
Kotlin has a lot of features aimed at mitigating the pain of working with Java APIs, such as extension functions. So you can sort of fix the API in a library or in your own code. (But it doesn't help with the lifecycle or reducing the number of layers.)