Kotlin Design Patterns and Best Practices
356 Seiten
German
PDF
4.5

Kotlin Design Patterns and Best Practices

Практическое руководство по паттернам и идиомам Kotlin

Autor:

Jahr:

Zusammenfassung:

Introduction

The book "Kotlin Design Patterns and Best Practices" (second edition, 2022) by Alexey Soshin is a modern guide to applying design patterns in the Kotlin language. Unlike many books that simply transfer classic GoF patterns to a new language, this work shows how Kotlin idioms (higher-order functions, sealed classes, coroutines) change the approach to architecture. The author not only explains how to implement patterns but also when to apply them and when to opt for simpler solutions instead.

What the book is about

The book consists of 13 chapters covering all major categories of patterns: creational, structural, and behavioral. Special attention is given to functional patterns (monad, functor) and asynchronous programming with coroutines. Each chapter contains practical examples in Kotlin, comparisons with Java implementations, and refactoring tips. The end of the book covers architectural styles (microservices, hexagonal architecture) and testing.

Who this book is for

The book is aimed at developers already familiar with the basics of Kotlin (syntax, classes, functions). It will be useful for:

  • Java developers transitioning to Kotlin who want to write idiomatic code;
  • Android developers who want to deepen their understanding of application architecture;
  • JVM backend developers using Ktor or Spring with Kotlin;
  • Anyone who wants to systematize their knowledge of patterns and learn

Empfehlungen