This chapter provided a glimpse into how the Kotlin smart compiler handles (de)serialization for you—all you have to do is use annotations. Since the runtime reflection is avoided, the performance benefits are considerable, even more so for systems/software dealing with large volumes of data stored on various mediums. Since the project is open source, you can easily get your hands on it, and, for the curious out there, dive into the code to find more about how it works—and maybe contribute to it, in order to give back to the community.

Learn Kotlin Programming
By :

Learn Kotlin Programming
By:
Overview of this book
Kotlin is a general-purpose programming language used for developing cross-platform applications. Complete with a comprehensive introduction and projects covering the full set of Kotlin programming features, this book will take you through the fundamentals of Kotlin and get you up to speed in no time.
Learn Kotlin Programming covers the installation, tools, and how to write basic programs in Kotlin. You'll learn how to implement object-oriented programming in Kotlin and easily reuse your program or parts of it. The book explains DSL construction, serialization, null safety aspects, and type parameterization to help you build robust apps. You'll learn how to destructure expressions and write your own. You'll then get to grips with building scalable apps by exploring advanced topics such as testing, concurrency, microservices, coroutines, and Kotlin DSL builders. Furthermore, you'll be introduced to the kotlinx.serialization framework, which is used to persist objects in JSON, Protobuf, and other formats.
By the end of this book, you'll be well versed with all the new features in Kotlin and will be able to build robust applications skillfully.
Table of Contents (21 chapters)
Preface
Getting Started with Kotlin
Kotlin Basics
Object-Oriented Programming in Kotlin
Section 2: Practical Concepts in Kotlin
Functions in Kotlin
Higher-Order Functions and Functional Programming
Properties
Null Safety, Reflection, and Annotations
Generics
Data Classes
Collections
Testing in Kotlin
Microservices with Kotlin
Section 3: Advanced Concepts in Kotlin
Coroutines
Application of Coroutines
Kotlin Serialization
Other Books You May Enjoy
How would like to rate this book
Customer Reviews