Название: Kotlin in Action, 2nd Edition (Final) Автор: Sebastian Aigner, Roman Elizarov, Svetlana Isakova, Dmitry Jemerov Издательство: Manning Publications Год: 2024 Страниц: 564 Язык: английский Формат: epub Размер: 10.1 MB
Expert guidance and amazing examples from Kotlin core developers! It’s everything you need to get up and running fast.Kotlin in Action, Second Edition takes you from language basics to building production-quality applications that take advantage of Kotlin’s unique features. Discover how the language handles everything from statements and functions to classes and types, and the unique features that make Kotlin programming so seamless.
The second edition of Kotlin in Action teaches you the Kotlin programming language and how to use it to build applications running on the Java virtual machine (JVM) and Android. It starts with the basic features of the language and proceeds to cover the more distinctive aspects of Kotlin, such as its support for building high-level abstractions and domain-specific languages. The book also provides the information you need to integrate Kotlin with existing Java projects and helps you introduce Kotlin into your current working environment. The book covers Kotlin 2.0.
The goal of this part of the book is to get you productive writing Kotlin code that uses existing APIs. Chapter 1 will introduce you to the general traits of Kotlin. In chapters 2-4, you’ll learn how basic programming concepts—statements, functions, classes, and types—map to Kotlin code and how Kotlin enriches them to make programming more pleasant. You’ll be able to rely on your existing knowledge of other object-oriented languages, like Java, as well as tools, such as IDE coding-assistance features and the Java-to-Kotlin converter, to get up to speed quickly. In chapter 5, you’ll find out how lambdas help you avoid repetition and effectively solve common programming tasks. Chapter 6 teaches you how Kotlin allows you to elegantly modify collections using a functional programming approach. In chapter 7, you’ll become familiar with one of the key Kotlin specialties: its support for dealing with null values. In chapter 8, you’ll take a closer look at the basics of Kotlin’s type system, from basic numbers to the special Any and Nothing types. You’ll also learn more about collection types, including their read-only and mutable versions, and get introduced to arrays.
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 Domain-specific languages Kotlin coroutines and flows
Who should read this book: Kotlin in Action, Second Edition, is primarily focused on developers with some level of Java experience. Kotlin builds on many concepts and techniques from Java, and the book strives to get you up to speed quickly by using your existing knowledge. If you’re experienced with other programming languages such as C# or jаvascript, you may need to refer to other sources of information to understand the more intricate aspects of Kotlin’s interaction with the JVM, but you’ll still be able to learn Kotlin using this book. We focus on the Kotlin language as a whole and not on a specific problem domain, so the book should be equally useful for server-side developers, Android developers, and everyone else who builds projects targeting the JVM.
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.