Price: $39.99 - $30.00
(as of Feb 04, 2025 14:52:12 UTC – Details)
Dive deep into Kotlin design patterns, explore idiomatic functional programming, and master microservices with frameworks like Arrow, Ktor, and Vert.x.
Key FeaturesStart from basic Kotlin syntax and go all the way to advanced topics like Coroutines and structural concurrencyLearn how to select and implement the right design pattern for your next Kotlin projectGet to grips with concurrent and reactive microservices with Ktor and Vert.xBook Description
For developers who are working with Design Patterns in Kotlin, this practical guide offers an opportunity to put their knowledge into practice. The book covers classical and modern design patterns, and provides a hands-on approach to implementation, along with associated methodologies.
The third edition stays current with Kotlin updates, spanning from version 1.6 onwards, and offers in-depth insights into topics like Structured Concurrency and Context Receivers. The book starts by introducing essential Kotlin syntax and the significance of design patterns, covering classic Creational, Structural, and Behavioral patterns. It then progresses to explore functional programming, Reactive, and Concurrent patterns, including detailed discussions on Coroutines and Structured Concurrency. As you navigate through these advanced concepts, you’ll enhance your Kotlin coding skills. The book also delves into the latest architectural trends, focusing on microservices design patterns and aiding your decision-making process when choosing between architectures.
By the end of the book, you will have a solid grasp of these advanced concepts and be able to apply them in your own projects.
What you will learnUtilize functional programming and coroutines with the Arrow frameworkUse classical design patterns in the Kotlin programming languageScale your applications with reactive and concurrent design patternsDiscover best practices in Kotlin and explore its new featuresApply the key principles of functional programming to KotlinFind out how to write idiomatic Kotlin code and learn which patterns to avoidHarness the power of Kotlin to design concurrent and reliable systems with easeCreate an effective microservice with Kotlin and the Ktor frameworkWho this book is for
This book is for developers who want to apply design patterns they’ve learned from other languages in Kotlin and build reliable, scalable, and maintainable applications. You’ll need a good grasp on at least one programming language before you get started with this book. Familiarity with classical design patterns from your language of choice would be helpful, but you’ll still be able to follow along if you code in other languages
Table of Contents Getting Started with Kotlin and Design PatternsCreational PatternsStructural PatternsBehavioral PatternsFunctional ProgrammingThreads and CoroutinesControlling the Data FlowDesigning for ConcurrencyIdiomatic Functional Programming with ArrowIdioms and AntipatternsConcurrent Microservices with KtorReactive Microservices with Vert.x
From the Publisher
There are lots of books on Kotlin, and on Design Patterns too, what makes this book unique?
As I was planning this book, I had the following idea in mind: instead of just teaching a new language to the readers, I wanted to teach them Kotlin through Design Patterns, and Design Patterns through Kotlin. I believe I succeeded in my goal, although the readers will be the best judges.
While there are many learning resources for Kotlin and design patterns in the abstract, there are no other books that teach you how to apply the classic Creational, Behavioral, and Structural design patterns to Kotlin. This book offers a comprehensive guide to smarter coding in Kotlin.
What’s new in this edition, and why should readers of the previous edition consider upgrading?
This edition reflects the rapid evolution of both the industry and Kotlin programming language. Two of the most exciting topics this book now covers are Structured Concurrency, which helps write concurrent programs without risking resource leaks, and Context Receivers, which can be viewed as an evolution of Extension Functions and allows writing more concise and expressive code. In addition, a new chapter in this book is dedicated to the Arrow library, a functional programming library that has gained popularity in the Kotlin community over the past few years.
While only one chapter is completely brand-new, many of the other chapters have been extensively modernized and extended to add new coverage throughout the book. Readers of the previous edition will find, among other things, new content on stable deep recursive functions, windowed, chunked, and zipWithNext functions on collections, new Gradle DSL, and JVM records in Kotlin.
Finally, how will this book help readers in their careers?
The book can help readers in multiple ways. If they’re at the beginning of their career, it should be a good introduction to the benefits of the Kotlin programming language and a pragmatic, not too academic, introduction to the concept of Design Patterns. On the other hand, if they are experienced developers, they will be able to learn how and when the patterns they already know could be applied in Kotlin, what patterns are already built into the language or the standard library, and how to implement those that are not built-in.
Publisher : Packt Publishing – ebooks Account; 3rd ed. edition (May 9, 2024)
Language : English
Paperback : 402 pages
ISBN-10 : 1805127764
ISBN-13 : 978-1805127765
Item Weight : 1.8 pounds
Dimensions : 0.9 x 7.5 x 9.25 inches