Kotlin Design Patterns and Best Practices : Elevate your Kotlin skills with classical and modern design patterns, coroutines, and micro, 3/e (Paperback)
Soshin, Alexey
- 出版商: Packt Publishing
- 出版日期: 2024-04-29
- 售價: $1,580
- 貴賓價: 9.5 折 $1,501
- 語言: 英文
- 頁數: 474
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1805127764
- ISBN-13: 9781805127765
-
相關分類:
JVM 語言、Design Pattern
立即出貨 (庫存=1)
買這商品的人也買了...
相關主題
商品描述
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
- Getting Started with Kotlin
- Working with Creational Patterns
- Understanding Structural Patterns
- Getting Familiar with Behavioral Patterns
- Introducing Functional Programming
- Threads and Coroutines
- Controlling the Data Flow
- Designing for Concurrency
- Idioms and Anti-Patterns
- Practical Functional Programming with Arrow
- Concurrent Microservices with Ktor
- Reactive Microservices with Vert.x
商品描述(中文翻譯)
深入探索 Kotlin 設計模式,探索慣用的函數式編程,並掌握使用 Arrow、Ktor 和 Vert.x 等框架的微服務。
主要特點:
- 從基本的 Kotlin 語法開始,一直到像 Coroutines 和結構並發這樣的高級主題
- 學習如何選擇並實現適合下一個 Kotlin 項目的正確設計模式
- 熟悉使用 Ktor 和 Vert.x 進行並發和反應式微服務
書籍描述:
對於正在使用 Kotlin 的開發人員來說,這本實用指南提供了將他們的知識付諸實踐的機會。本書涵蓋了經典和現代設計模式,並提供了實踐方法以及相關的方法論。
第三版與 Kotlin 的更新保持同步,從版本 1.6 開始,並深入探討了結構化並發和上下文接收器等主題。本書首先介紹了基本的 Kotlin 語法和設計模式的重要性,涵蓋了經典的創建型、結構型和行為型模式。然後,它進一步探討了函數式編程、反應式和並發模式,包括對 Coroutines 和結構化並發的詳細討論。通過學習這些高級概念,您將增強您的 Kotlin 編碼技能。本書還深入探討了最新的架構趨勢,重點介紹了微服務設計模式,幫助您在選擇架構時做出決策。
通過閱讀本書,您將對這些高級概念有很好的理解,並能夠在自己的項目中應用它們。
學到什麼:
- 使用 Arrow 框架利用函數式編程和協程
- 在 Kotlin 編程語言中使用經典設計模式
- 使用反應式和並發設計模式擴展應用程序
- 探索 Kotlin 的最佳實踐並了解其新功能
- 將函數式編程的關鍵原則應用於 Kotlin
- 找出如何編寫慣用的 Kotlin 代碼,並學習避免使用哪些模式
- 利用 Kotlin 設計並發和可靠的系統
- 使用 Kotlin 和 Ktor 框架創建有效的微服務
本書適合對於想要將他們從其他語言學到的設計模式應用於 Kotlin,並構建可靠、可擴展和易於維護的應用程序的開發人員。在開始閱讀本書之前,您需要對至少一種編程語言有很好的理解。如果您熟悉您選擇的語言中的經典設計模式,那將有所幫助,但如果您使用其他語言編碼,您仍然可以跟隨本書的內容。
目錄:
1. 開始使用 Kotlin
2. 使用創建型模式
3. 理解結構型模式
4. 熟悉行為型模式
5. 介紹函數式編程
6. 線程和協程
7. 控制數據流
8. 設計並發
9. 慣用語法和反模式
10. 使用 Arrow 進行實用的函數式編程
11. 使用 Ktor 進行並發微服務
12. 使用 Vert.x 進行反應式微服務