Kotlin has been making waves ever since it was open sourced by JetBrains in 2011; it has been praised by developers across the world and is already being adopted by companies. This book provides a detailed introduction to Kotlin that shows you all its features and will enable you to write Kotlin code to production.
We start with the basics: get you familiar with running Kotlin code, setting up, tools, and instructions that you can use to write basic programs. Next, we cover object oriented code: functions, lambdas, and properties – all while using Kotlin’s new features.
Then, we move on to null safety aspects and type parameterization. We show you how to destructure expressions and even write your own. We also take you through important topics like testing, concurrency, microservices, and a whole lot more. By the end of this book you will be able to compose different services and build your own applications.
Chapter 1. Getting Started with Kotlin
Chapter 2. Kotlin Basics
Chapter 3. Object-Oriented Programming in Kotlin
Chapter 4. Functions in Kotlin
Chapter 5. Higher Order Functions and Functional Programming
Chapter 6. Properties
Chapter 7. Null Safety, Reflection, and Annotations
Chapter 8. Generics
Chapter 9. Data Classes
Chapter 10. Collections
Chapter 11. Testing in Kotlin
Chapter 12. Microservices with Kotlin
Chapter 13. Concurrency