Expert guidance and amazing examples from core Kotlin’s developers! It’s everything you need to get up and running fast.
In Kotlin in Action, Second Edition you will learn:
Kotlin statements and functions, and classes and types
Functional programming on the JVM
The Kotlin standard library and out-of-the-box features
Writing clean and idiomatic code
Combining Kotlin and Java
Improve code reliability with Null safety
Mastering the kotlinx.coroutines library
Kotlin in Action, Second Edition is a complete guide to the Kotlin language written especially for readers familiar with Java or another OO language. In it, core Kotlin language developers share their unique insights, along with practical techniques and hands-on examples. You’ll quickly progress from language basics to building production-quality applications that take advantage of Kotlin’s unique features. This new second edition is fully updated to include the latest innovations, and it adds new chapters dedicated to coroutines and concurrency.
about the technology
Coding with Kotlin means less hassle and more productivity. This JVM-based language offers an expressive syntax, a strong intuitive type system, and great tooling support—plus seamless interoperability with existing Java code, libraries, and frameworks. Kotlin is general purpose, safe, pragmatic, and the premier language of Android development. While the language has grown beyond its initial Java-centric focus, you can still use and integrate with your favorite Java tools and libraries, including Spring.
about the book
Kotlin in Action, Second Edition teaches you Kotlin techniques you can use for almost any type of application, from enterprise services to Android apps. The authors are all members of the Kotlin team, so you can trust that even the gnarly details are dead accurate. You’ll start with Kotlin fundamentals, learning how the language handles everything from statements and functions to classes and types, and about its unique features that make Kotlin programming so seamless.
As you progress through this masterful book, you’ll get hands-on with the Kotlin standard library, functional programming in Kotlin, and advanced features such as generics and reflection. And this updated second edition now covers coroutines and structured concurrency to help you create efficient high-performance applications.
about the authors
Roman Elizarov is a Project Lead for Kotlin at JetBrains and currently focuses on the Kotlin language design in the role of Lead Language Designer. Roman Elizarov previously designed and developed high-performance trading software for leading brokerage firms and market data delivery services that routinely handle millions of events per second. He has been working on Kotlin at JetBrains since 2016 and has contributed to the design of Kotlin coroutines and the development of the Kotlin coroutines library.
Svetlana Isakova began as a member of the Kotlin compiler team and is now a developer advocate for JetBrains. She teaches Kotlin and speaks at conferences worldwide. She is a co-creator of the course "Kotlin for Java developers" at Coursera and is a co-author of the book "Atomic Kotlin."
As a Kotlin Developer Advocate at JetBrains, Sebastian Aigner spends a lot of time thinking about how technologies can empower and delight people. When he first tried Kotlin, it was love at first sight.He gave talks at KotlinConf, participated in the Kotlin/Everywhere campaign, and spoke at a multitude of other conferences. He hosts the Talking Kotlin podcast together with Hadi Hariri, and creates videos for the official Kotlin YouTube channel.
Dmitry Jemerov has been working with JetBrains since 2003. He was one of the initial developers working on Kotlin as the project was started, and he’s deeply familiar with the design of the language and the reasons for the decisions that were made during its development. He’s currently responsible for Kotlin documentation.