Kotlin: An Illustrated Guide
Learn Kotlin programming the fun way, with oodles of illustrations and concrete explanations, in a book that steps through the concepts one at a time in order to help you build a solid mental model of the language. Whether you're new to Kotlin, or just looking to fill in some gaps of knowledge, Kotlin: An Illustrated Guide has got you covered!
Although this PDF book is still in "early access", the main content is complete for all 20 chapters. I'm actively working on scaling up the resolution of the drawings in the last 3 chapters. After that, the layout will be finalized to reduce whitespace and to prepare for the print edition.
How else can I read this book?
- The main content of this book is freely available online at https://typealias.com/start.
- If you're a Leanpub Reader, Standard, or Pro member, you can pick up the PDF book for no additional cost on Leanpub. It's also available for purchase on Leanpub.
By purchasing this digital edition, you'll get a PDF of the book, which you can read offline and mark up with your favorite PDF application.
Chapters
- Variables, Expressions, and Types
- Functions
- Conditionals: When and If
- Introduction to Classes and Objects
- Enum Classes in Kotlin
- Nulls and Null Safety
- Lambdas and Function References
- Collections: Lists and Sets
- Collections: Maps
- Receivers and Extensions
- Scopes and Scope Functions
- Introduction to Interfaces
- Introduction to Class Delegation
- Inheritance and Abstract Classes
- Data Classes and Destructuring
- Sealed Classes
- Handling Runtime Exceptions
- Generics
- Generic Variance
- Introduction to Coroutines