Hands-on Design Patterns with Kotlin: Build scalable applications using traditional, reactive, and concurrent design patterns in Kotlin

Alexey Soshin

買這商品的人也買了...

商品描述

Make the most of Kotlin by leveraging design patterns and best practices to build scalable and high performing apps

Key Features

  • Understand traditional GOF design patterns to apply generic solutions
  • Shift from OOP to FP; covering reactive and concurrent patterns in a step-by-step manner
  • Choose the best microservices architecture and MVC for your development environment

Book Description

Design patterns enable you as a developer to speed up the development process by providing you with proven development paradigms. Reusing design patterns helps prevent complex issues that can cause major problems, improves your code base, promotes code reuse, and makes an architecture more robust.

The mission of this book is to ease the adoption of design patterns in Kotlin and provide good practices for programmers.

The book begins by showing you the practical aspects of smarter coding in Kotlin, explaining the basic Kotlin syntax and the impact of design patterns. From there, the book provides an in-depth explanation of the classical design patterns of creational, structural, and behavioral families, before heading into functional programming. It then takes you through reactive and concurrent patterns, teaching you about using streams, threads, and coroutines to write better code along the way

By the end of the book, you will be able to efficiently address common problems faced while developing applications and be comfortable working on scalable and maintainable projects of any size.

What you will learn

  • Get to grips with Kotlin principles, including its strengths and weaknesses
  • Understand classical design patterns in Kotlin
  • Explore functional programming using built-in features of Kotlin
  • Solve real-world problems using reactive and concurrent design patterns
  • Use threads and coroutines to simplify concurrent code flow
  • Understand antipatterns to write clean Kotlin code, avoiding common pitfalls
  • Learn about the design considerations necessary while choosing between architectures

Who This Book Is For

This book is for developers who would like to master design patterns with Kotlin to build efficient and scalable applications. Basic Java or Kotlin programming knowledge is assumed

Table of Contents

  1. Getting Started with Kotlin
  2. Working with Creational Patterns
  3. Understanding Structural Patterns
  4. Getting familiar with Behavioral Patterns
  5. Pattern implementation using Functional Programming
  6. Exploring Streams
  7. Staying reactive
  8. Introduction: Threads and Coroutines
  9. Designed for concurrency
  10. Anti-patterns and Idioms
  11. Simplifying microservices and MVC

商品描述(中文翻譯)

充分利用Kotlin,運用設計模式和最佳實踐來建立可擴展和高效能的應用程式。

主要特點:

- 了解傳統的GOF設計模式,以應用通用解決方案
- 從面向對象編程轉向函數式編程,逐步介紹反應式和並發模式
- 選擇最適合您的開發環境的最佳微服務架構和MVC

書籍描述:

設計模式使您作為開發人員能夠通過提供經過驗證的開發範例來加快開發過程。重複使用設計模式有助於防止可能導致重大問題的複雜問題,改善代碼庫,促進代碼重用,並使架構更加健壯。

本書的目標是簡化Kotlin中設計模式的採用,並為程序員提供良好的實踐方法。

本書首先展示了在Kotlin中更智能編碼的實際方面,解釋了基本的Kotlin語法和設計模式的影響。然後,本書深入解釋了創建、結構和行為家族的經典設計模式,然後進入函數式編程。在此過程中,它將引導您進行反應式和並發模式的學習,教您如何使用流、線程和協程編寫更好的代碼。

通過閱讀本書,您將能夠高效地解決開發應用程序時遇到的常見問題,並能夠在任何規模的可擴展和可維護的項目上輕鬆工作。

您將學到的內容:

- 熟悉Kotlin原則,包括其優點和缺點
- 了解Kotlin中的經典設計模式
- 使用Kotlin內置功能探索函數式編程
- 使用反應式和並發設計模式解決現實世界問題
- 使用線程和協程簡化並發代碼流程
- 了解反模式,以編寫乾淨的Kotlin代碼,避免常見陷阱
- 學習在選擇架構時需要考慮的設計問題

本書適合對於使用Kotlin來構建高效和可擴展應用程序的開發人員。假設具備基本的Java或Kotlin編程知識。

目錄:

1. 開始使用Kotlin
2. 使用創建模式
3. 理解結構模式
4. 熟悉行為模式
5. 使用函數式編程實現模式
6. 探索流
7. 保持反應式
8. 簡介:線程和協程
9. 設計並發
10. 反模式和習慣用法
11. 簡化微服務和MVC