Android KTX: Kotlin Development for Android
android-developers.googleblog.com
Android KTX: Kotlin Development for Android
1–10 of 75 posts
Re: Android KTX: Kotlin Development for Android
#2Re: Android KTX: Kotlin Development for Android
#3Re: Android KTX: Kotlin Development for Android
#4> Uri.parse(myUriString)
vs.
> myUriString.toUri()
I'm not sure if I would prefer the second one...
Re: Android KTX: Kotlin Development for Android
#5Still working in Java on Android. Have a feeling that I will be left behind soon.
Re: Android KTX: Kotlin Development for Android
#6And no, there's no scrolling or zooming allowed.
Seriously, let's stop the focus on web framework du jour and actually make web sites that work, please.
Re: Android KTX: Kotlin Development for Android
#7some examples are fine, but come on... > Uri.parse(myUriString) vs. > myUriString.toUri() I'm not sure if I would prefer the second one...
Re: Android KTX: Kotlin Development for Android
#8some examples are fine, but come on... > Uri.parse(myUriString) vs. > myUriString.toUri() I'm not sure if I would prefer the second one...
Re: Android KTX: Kotlin Development for Android
#9some examples are fine, but come on... > Uri.parse(myUriString) vs. > myUriString.toUri() I'm not sure if I would prefer the second one...
Discoverability via autocomplete is much higher in the second one. Extension methods probably seem really strange to anyone coming from a FP background (myself included), but in practice they've ended up being pretty useful when paired with Intellij.
As long as you have good docs, I find discoverability is rarely an issue. One of the first things I do when picking up a language is look through its built-in constructs, to familiarize myself with the available options.
Re: Android KTX: Kotlin Development for Android
#10We've already seen something similar before: when Apple "modernized" many of the their Cocoa Touch APIs to work better with Swift.