In the name of Allah the Merciful

Kotlin Design Patterns and Best Practices: Elevate your Kotlin skills with classical and modern design patterns, coroutines, and microservices

Alexey Soshin, 9781805127765, 978-1805127765, 978-1-80512-776-5, B0CXQCZYRS, 1805127764

English | 2024 | PDF | 8 MB | 475 Pages

number
type
  • {{value}}
wait a little

Dive deep into Kotlin design patterns, explore idiomatic functional programming, and master microservices with frameworks like Arrow, Ktor, and Vert.x.

Key Features

  • Start from basic Kotlin syntax and go all the way to advanced topics like Coroutines and structural concurrency
  • Learn how to select and implement the right design pattern for your next Kotlin project
  • Get to grips with concurrent and reactive microservices with Ktor and Vert.x

Book 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 learn

  • Utilize functional programming and coroutines with the Arrow framework
  • Use classical design patterns in the Kotlin programming language
  • Scale your applications with reactive and concurrent design patterns
  • Discover best practices in Kotlin and explore its new features
  • Apply the key principles of functional programming to Kotlin
  • Find out how to write idiomatic Kotlin code and learn which patterns to avoid
  • Harness the power of Kotlin to design concurrent and reliable systems with ease
  • Create an effective microservice with Kotlin and the Ktor framework

Who 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

  1. Getting Started with Kotlin
  2. Working with Creational Patterns
  3. Understanding Structural Patterns
  4. Getting Familiar with Behavioral Patterns
  5. Introducing Functional Programming
  6. Threads and Coroutines
  7. Controlling the Data Flow
  8. Designing for Concurrency
  9. Idioms and Anti-Patterns
  10. Practical Functional Programming with Arrow
  11. Concurrent Microservices with Ktor
  12. Reactive Microservices with Vert.x