Kotlin Design Pattes and Best Practices - Third Edition:Elevate your Kotlin skills with classical and mode design pattes, coroutines, and microservices
by: Alexey Soshin (Author)
Publisher: Packt Publishing
Publication Date: 29 April 2024
Language: English
Print Length: 474 pages
ISBN-10: 1805127764
ISBN-13: 9781805127765
Book Description
Dive deep into Kotlin design pattes, 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 concurrencyLea how to select and implement the right design patte for your next Kotlin projectGet to grips with concurrent and reactive microservices with Ktor and Vert.xBook DescriptionFor developers who are working with Design Pattes in Kotlin, this practical guide offers an opportunity to put their knowledge into practice. The book covers classical and mode design pattes, 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 pattes, covering classic Creational, Structural, and Behavioral pattes. It then progresses to explore functional programming, Reactive, and Concurrent pattes, 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 pattes 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 leaUtilize functional programming and coroutines with the Arrow frameworkUse classical design pattes in the Kotlin programming languageScale your applications with reactive and concurrent design pattesDiscover 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 lea which pattes to avoidHaess the power of Kotlin to design concurrent and reliable systems with easeCreate an effective microservice with Kotlin and the Ktor frameworkWho this book is forThis book is for developers who want to apply design pattes they've leaed 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 pattes from your language of choice would be helpful, but you'll still be able to follow along if you code in other languagesTable of ContentsGetting Started with KotlinWorking with Creational PattesUnderstanding Structural PattesGetting Familiar with Behavioral PattesIntroducing Functional ProgrammingThreads and CoroutinesControlling the Data FlowDesigning for ConcurrencyIdioms and Anti-PattesPractical Functional Programming with ArrowConcurrent Microservices with KtorReactive Microservices with Vert.x
About the Author
About the Author Alexey Soshin is a software architect with 18 years of experience in the industry. He started exploring Kotlin when Kotlin was still in beta, and since then has been a big enthusiast of the language. He's a conference speaker, published writer, and the author of a video course titled Pragmatic System Design