This tutorial assumes that all you know is Java, but you want to learn Kotlin.
Please note that the resources are in the wiki page.
A few things that are worth watching to know more about Kotlin.
-
By me: Odd things to look out for when converting code to Kotlin
-
By me: Code clean-up with Kotlin
-
Android KTX source code: Github snapshot or AOSP (actively developed)
-
inverted argument order, no semi-colons, void vs Unit, Object vs Any?, fun
-
visibility in Kotlin (public by default, private, protected, internal)
-
backticks for reserved keywords (Mockito.when, $) and import aliases
-
arrayOf and arrayOfNulls and listOf and mutableListOf and linkedMapOf
-
there are no checked exceptions, try-with-resources as .use {}
-
standard library functions - scoping functions:
apply
,let
,also
,run
,with
-
standard library functions - more utility functions:
takeIf
,takeUnless
-
things marked with * in the table of contents
-
coroutines?
-
channels?
-
@DslMarker?
-
multi-platform things:
expect
andactual
?
Copyright 2018 Gabor Varadi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.