Skip to content
Projetos

Zhuinden/guide-to-kotlin

Ver no GitHub

Sobre

[GUIA] Este tutorial parte do pressuposto de que você só conhece Java, mas quer aprender Kotlin.

Aprendizado e educação

Como estes números são medidos

O que você pode fazer

  • typed nullability, and null-safety operators (?., ?:)
  • smart casting (and mutable vars gotcha)
  • properties, backing fields
  • string interpolation and """multiline escaped ${strings}"""

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
-1
em 1 mês
-1

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Click this link to go to the Wiki page

Guide to Kotlin

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.

Additional resources

A few things that are worth watching to know more about Kotlin.

More resources to read

More resources to watch

Style-guide and reference for common mistakes to avoid

https://www.reddit.com/r/androiddev/comments/77sl1c/devs_who_review_kotlin_regularly_what_are_things/dorsk3i/

Table of Content

Major Syntax Differences

Basic Kotlin Features

The Cool Stuff

The Tricky Stuff

Android-Specific Stuff

Stuff that is currently not covered, and should eventually be added in this tutorial

  • Coroutines, coroutines on Android, suspend fun

  • Channels: LinkedListChannel, BroadcastChannel

  • @DslMarker

  • multi-platform things: expect and actual

  • contracts

License

Copyright 2018-2020 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.

Explore projetos relacionados

Carregando…