Kotlin in Action
464 pages
English
PDF
4.7

Kotlin in Action

Kotlin in Action

Author:

Year:

Summary:

The book "Kotlin in Action" is a practical guide to the Kotlin programming language from the leading developers at JetBrains. It is intended for programmers already familiar with Java or another statically typed language who want to quickly and effectively master Kotlin in real-world projects.

The book thoroughly covers all key language features: from basic syntax and type systems to advanced concepts like coroutines, DSLs, and multiplatform development. Special attention is paid to compatibility with Java and a smooth transition to Kotlin in existing projects.

The reader will learn: how to write concise and safe code using null-safety and functional constructs; how to work effectively with collections, lambda expressions, and extensions; how to use coroutines for asynchronous programming; how to create domain-specific languages (DSLs) and work with serialization.

Chapter contents: 1) Kotlin: what and why; 2) Language basics; 3) Defining and calling functions; 4) Classes, objects, and interfaces; 5) Lambda expressions and collections; 6) The type system; 7) Operator overloading and conventions; 8) Higher-order functions; 9) Generics; 10) Annotations and reflection; 11) DSL construction; 12) Coroutines; 13) Multiplatform projects.

Why you should read it: the book is written by the creators of the language, which guarantees accuracy and depth of coverage. Each chapter contains numerous code examples and practical exercises. This is not just a reference, but a comprehensive guide to modern Kotlin development for server-side, Android, and multiplatform applications.

Recommendations