@@ -97,14 +97,39 @@ general, algorithm for learning is:
97
97
5 . Do the thing you just learned how to do, and repeat from step 1.
98
98
99
99
Good resources for looking things up and learning more include:
100
- * [ Kotlin reference docs] upstream -- tons of good stuff here.
100
+ * [ Kotlin reference docs] upstream -- tons of good stuff here,
101
+ including many pages you'll definitely want to read eventually.
102
+ Here's an incomplete list:
103
+ * Key concepts that don't exist in Java:
104
+ [ null safety] , [ extensions] , [ inline functions] .
105
+ * Key concepts that exist in Java but with differences:
106
+ [ control flow (especially ` when ` )] [ control-flow ] ;
107
+ [ classes] .
108
+ * Some [ Kotlin idioms] . This one is like StackOverflow answers;
109
+ once you find something relevant here, you'll want to go look up
110
+ its real documentation.
101
111
* [ Kotlin standard library reference] [ kotlin-stdlib ] ; especially on
102
112
[ collections (List, Iterable, Map, etc.)] [ kotlin-collections ] .
113
+ * A [ Kotlin style guide] [ android-kotlin-style ] ,
114
+ and a [ bonus style guide] [ android-kotlin-java-interop ] for Kotlin
115
+ code that'll be used from Java. These come from Android upstream,
116
+ but their content isn't specific to Android.
117
+ * [ Android KTX] , a library that uses Kotlin features to provide nicer
118
+ interfaces to Android APIs.
103
119
* Various resources linked from [ Android upstream] [ android-kotlin-resources ] .
104
120
105
121
[ Kotlin reference docs ] : https://kotlinlang.org/docs/reference/basic-types.html
122
+ [ null safety ] : https://kotlinlang.org/docs/reference/null-safety.html
123
+ [ extensions ] : https://kotlinlang.org/docs/reference/extensions.html
124
+ [ inline functions ] : https://kotlinlang.org/docs/reference/inline-functions.html
125
+ [ control-flow ] : https://kotlinlang.org/docs/reference/control-flow.html
126
+ [ classes ] : https://kotlinlang.org/docs/reference/classes.html
127
+ [ Kotlin idioms ] : https://kotlinlang.org/docs/reference/idioms.html
106
128
[ kotlin-stdlib ] : https://kotlinlang.org/api/latest/jvm/stdlib/index.html
107
129
[ kotlin-collections ] : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/index.html
130
+ [ android-kotlin-style ] : https://developer.android.com/kotlin/style-guide
131
+ [ android-kotlin-java-interop ] : https://developer.android.com/kotlin/interop#kotlin_for_java_consumption
132
+ [ Android KTX ] : https://developer.android.com/kotlin/ktx.html
108
133
[ android-kotlin-resources ] : https://developer.android.com/kotlin/resources
109
134
110
135
0 commit comments