Kotlin Design Patterns and Best Practices - Second Edition

By Alexey Soshin
    Advance your knowledge in tech with a Packt subscription

  • Instant online access to over 7,500+ books and videos
  • Constantly updated with 100+ new titles each month
  • Breadth and depth in over 1,000+ technologies

About this book

Design patterns are well-known solutions to common architectural problems as they allow you to solve many problems efficiently and create a shared vocabulary between developers. This book shows you how easy it can be to implement traditional design patterns in the modern multi-paradigm Kotlin programming language, and takes you through the new patterns and paradigms that have emerged.

This second edition is updated to cover the changes introduced from Kotlin 1.2 up to 1.5, and focuses more on the idiomatic usage of coroutines, which have become a stable language feature. You'll begin by learning about the practical aspects of smarter coding in Kotlin, and understand basic Kotlin syntax and the impact of design patterns on your code.

The book also provides an in-depth explanation of the classic design patterns, such as Creational, Structural, and Behavioral families, before moving on to functional programming. You'll go through reactive and concurrent patterns, and finally get to grips with coroutines and structured concurrency to write performant, extensible, and maintainable code.

By the end of this Kotlin book, you'll have explored the latest trends in architecture and design patterns for microservices, as well as understood the tradeoffs when choosing between different architectures.

Publication date:
January 2022
Publisher
Packt
Pages
310
ISBN
9781801815727

About the Author

  • Alexey Soshin

    Alexey Soshin is a software architect with 15 years of experience in making software. He started exploring Kotlin even before Kotlin 1.0 was released, and since then, has been an evangelist of the language. He is an author of a best selling video course on System Design and speaks about Kotlin and concurrency at various conferences.

    Browse publications by this author
Kotlin Design Patterns and Best Practices - Second Edition
Unlock this book and the full library for FREE
Start free trial