In this second section of the book, you will dive deeper into the Kotlin language and standard library. More specifically, functions and functional programming as an alternative to object-oriented programming will be described. Next, more advanced Kotlin-specific features, such as properties and null safety, will be covered, with information on how these features relate back to Java. The advanced type system available in Kotlin will be discussed, with extensive examples on how safer code can be achieved when such a type system is available to the compiler. Next, one of the most fundamental parts of any system, data classes and collections, will be covered, focusing on how and where these improve on what is available in Java. Finally, all the topics will come together as you learn how to build your real-world application using the Lagom microservice...

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