Hands-on Design Patterns with Kotlin: Build scalable applications using traditional, reactive, and concurrent design patterns in Kotlin
暫譯: 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 設計模式,以應用通用解決方案

  • 從物件導向程式設計 (OOP) 轉向函數式程式設計 (FP),逐步涵蓋反應式和併發模式

  • 為您的開發環境選擇最佳的微服務架構和 MVC

書籍描述

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

本書的使命是簡化在 Kotlin 中採用設計模式的過程,並為程式設計師提供良好的實踐。

本書首先展示了在 Kotlin 中更智能編碼的實用方面,解釋了基本的 Kotlin 語法和設計模式的影響。接著,本書深入解釋了創建型、結構型和行為型的經典設計模式,然後進入函數式程式設計。接下來,將帶您了解反應式和併發模式,教您如何使用流、執行緒和協程來編寫更好的程式碼。

到本書結束時,您將能夠有效解決開發應用程式時面臨的常見問題,並能夠自信地處理任何規模的可擴展和可維護的專案。

您將學到什麼


  • 掌握 Kotlin 原則,包括其優勢和劣勢

  • 了解 Kotlin 中的經典設計模式

  • 利用 Kotlin 的內建功能探索函數式程式設計

  • 使用反應式和併發設計模式解決現實世界的問題

  • 使用執行緒和協程簡化併發程式碼流程

  • 了解反模式,以編寫乾淨的 Kotlin 程式碼,避免常見的陷阱

  • 學習在選擇架構時所需的設計考量

本書適合誰

本書適合希望掌握 Kotlin 設計模式以構建高效和可擴展應用程式的開發者。假設具備基本的 Java 或 Kotlin 程式設計知識。

目錄


  1. Kotlin 入門

  2. 創建型模式的應用

  3. 理解結構型模式

  4. 熟悉行為型模式

  5. 使用函數式程式設計實現模式

  6. 探索流

  7. 保持反應式

  8. 介紹:執行緒和協程

  9. 為併發而設計

  10. 反模式和慣用法

  11. 簡化微服務和 MVC