This presentation made me feel more confident in the future of Android with Kotlin. Paying more attention to all future Google I/O events. Thanks #Jetbrains
new to android development, would you tell me which should I go learn Kotlin with android studio plus ktx, or should I go flutter with dart, google is confusing new comers like me, I felt it is a dilemma for me to even start learning it.
Steven - If you are only going to develop Android apps then using Kotlin (via Kotlin JVM - kotlinlang.org/docs/reference/android-overview.html ) with Android Studio and the KTX library would be the way to go (Option 1). On the other hand if you are going to develop both Android and iOS apps then it would make sense to use Kotlin Native (for iOS development - kotlinlang.org/docs/reference/native-overview.html ), and Kotlin JVM (for Android development) along with the Kotlin multi-platform system ( kotlinlang.org/docs/reference/multiplatform.html ) to share common code like business logic (Option 2). With Option 2 Android development is done in the same way as Option 1. There is a real life Kotlin multi-platform project (Kotlin Conf) you can look at here: github.com/JetBrains/kotlinconf-app Do note that the Kotlin Conf project also covers the server-side and the web (as a web front end).
When should we create extensions? are they worth the effort to use them only once or should they be used more times to worth it? Also Is it there a hard rule to use inline or not? I´ve read you should use it on small functions, but how can we define "small", until 4 or 5 lines of code?
onApi can return a class which has the functions orApi() and orNull() another possibility would be to return null or the returnvalue of the language and the last option would be to return Unit? This would however only feel good to me if the body of the method would be an specific context like ApiContext to which multiple functions are attached that can only be called from that specific body. In that case you would really use the type-safe builders, but I think this approach doesn't entirely match the other extension-functions.
Not If you like me are in your mums basement without ambient lighting. When I'm outside the house under direct sunlight I'd agree (especially on my Macbook Retina glare) but it's to rare to really matter for me
it was java then , why java ? and then people moved to kotlin , then why kotlin , lets go for flutter , then why i/o released new updates to Android kotlin , since the flutter will be taken place next years , can anyone tell me why should i learn jetpack, people are going to move to web development since there is no stability in coding platform.
flutter is not to take over. native react is much stronger. The real reason why ktx is so important is because wants to become the new hybrid thing in future
Flutter looks promising yet it is a Bleeding edge technology. And unlike with Java/Kotlin we have many stable frameworks like Picasso, Okhttp, Dagger, Retrofit etc. I understand that we can create our own library but that's a lot of work TBH. :)
Why is it when Jake explains something it always seems so easy and understandable.
Andrei Kushner yeah, Jake has a talent for that it seems.
I see Jake, I hit Like.
Our lord and savior!
As always, Jake you rock !
This presentation made me feel more confident in the future of Android with Kotlin.
Paying more attention to all future Google I/O events.
Thanks #Jetbrains
new to android development, would you tell me which should I go learn Kotlin with android studio plus ktx, or should I go flutter with dart, google is confusing new comers like me, I felt it is a dilemma for me to even start learning it.
Steven - If you are only going to develop Android apps then using Kotlin (via Kotlin JVM - kotlinlang.org/docs/reference/android-overview.html ) with Android Studio and the KTX library would be the way to go (Option 1). On the other hand if you are going to develop both Android and iOS apps then it would make sense to use Kotlin Native (for iOS development - kotlinlang.org/docs/reference/native-overview.html ), and Kotlin JVM (for Android development) along with the Kotlin multi-platform system ( kotlinlang.org/docs/reference/multiplatform.html ) to share common code like business logic (Option 2).
With Option 2 Android development is done in the same way as Option 1. There is a real life Kotlin multi-platform project (Kotlin Conf) you can look at here: github.com/JetBrains/kotlinconf-app
Do note that the Kotlin Conf project also covers the server-side and the web (as a web front end).
Good watching.
When should we create extensions? are they worth the effort to use them only once or should they be used more times to worth it?
Also
Is it there a hard rule to use inline or not? I´ve read you should use it on small functions, but how can we define "small", until 4 or 5 lines of code?
our lord Jake!
Thank you Daddy!
You are always on point.
Can you please say, how to highlight code, like Jake did here?
onApi can return a class which has the functions orApi() and orNull() another possibility would be to return null or the returnvalue of the language and the last option would be to return Unit?
This would however only feel good to me if the body of the method would be an specific context like ApiContext to which multiple functions are attached that can only be called from that specific body. In that case you would really use the type-safe builders, but I think this approach doesn't entirely match the other extension-functions.
Next point for Kotlin :)
Very nice
Thanks jake
The supreme leader
How does this look in Kotlin?
public JakeWharton getLegend();
thanks Jake
Who has androidstudio not on dracula???
Thawindu Angesh Tuto I'm so used to auto completion, I rarely read the second or even third letter.
Dark Themes are actually worse for your eyes.
Not If you like me are in your mums basement without ambient lighting. When I'm outside the house under direct sunlight I'd agree (especially on my Macbook Retina glare) but it's to rare to really matter for me
Fair enough but isn't most of the internet light anyways? RUclips has a dark theme, but apart from that almost everything is just bright.
@@codinginflow How are they worse?
It's actually Flutter.
Where can I get these slides?
Waoooooooooo!!!! 😱😱😱😱
it was java then , why java ? and then people moved to kotlin , then why kotlin , lets go for flutter , then why i/o released new updates to Android kotlin , since the flutter will be taken place next years , can anyone tell me why should i learn jetpack, people are going to move to web development since there is no stability in coding platform.
flutter is not to take over. native react is much stronger. The real reason why ktx is so important is because wants to become the new hybrid thing in future
Wow
great
Hi /r/mAndroidDev
Oh what
We won't port our code to Kotlin yet, but YOU should. LOL
flutter Is coming,why I need to know all that ?
Flutter looks promising yet it is a Bleeding edge technology. And unlike with Java/Kotlin we have many stable frameworks like Picasso, Okhttp, Dagger, Retrofit etc. I understand that we can create our own library but that's a lot of work TBH. :)
No future with Dart?
Unfortunatelly I fell asleep at the middle of presentation. So boring (
that just shows you cant be a good programmer