Practical Design Patterns for Java Developers: Hone your software design skills by implementing popular design patterns in Java
暫譯: Java 開發者的實用設計模式:透過在 Java 中實作流行設計模式來提升您的軟體設計技能
Wengner, Miroslav
- 出版商: Packt Publishing
- 出版日期: 2023-02-03
- 定價: $1,440
- 售價: 9.0 折 $1,296
- 語言: 英文
- 頁數: 266
- 裝訂: Quality Paper - also called trade paper
- ISBN: 180461467X
- ISBN-13: 9781804614679
-
相關分類:
Java 程式語言、Design Pattern
-
相關翻譯:
從零學Java設計模式 (簡中版)
立即出貨 (庫存=1)
商品描述
Unravel the power of Java design patterns by learning where to apply them effectively to solve specific software design and development problems
Key Features
- Decouple logic across objects with dependency injection by creating various vehicles with features
- Finalize vehicle construction by chaining handlers using the Chain of Responsibility Pattern
- Plan and execute an advanced vehicle sensor initiation with the Scheduler Pattern
Book Description
Design patterns are proven solutions to standard problems in software design and development, allowing you to create reusable, flexible, and maintainable code. This book enables you to upskill by understanding popular patterns to evolve into a proficient software developer.
You'll start by exploring the Java platform to understand and implement design patterns. Then, using various examples, you'll create different types of vehicles or their parts to enable clarity in design pattern thinking, along with developing new vehicle instances using dedicated design patterns to make the process consistent. As you progress, you'll find out how to extend vehicle functionalities and keep the code base structure and behavior clean and shiny. Concurrency plays an important role in application design, and you'll learn how to employ a such design patterns with the visualization of thread interaction. The concluding chapters will help you identify and understand anti-pattern utilization in the early stages of development to address refactoring smoothly. The book covers the use of Java 17+ features such as pattern matching, switch cases, and instances of enhancements to enable productivity.
By the end of this book, you'll have gained practical knowledge of design patterns in Java and be able to apply them to address common design problems.
What you will learn
- Understand the most common problems that can be solved using Java design patterns
- Uncover Java building elements, their usages, and concurrency possibilities
- Optimize a vehicle memory footprint with the Flyweight Pattern
- Explore one-to-many relations between instances with the observer pattern
- Discover how to route vehicle messages by using the visitor pattern
- Utilize and control vehicle resources with the thread-pool pattern
- Understand the penalties caused by anti-patterns in software design
Who this book is for
If you are an intermediate-level Java developer or software architect looking to learn the practical implementation of software design patterns in Java, then this book is for you. No prior knowledge of design patterns is required, but an understanding of Java programming is necessary.
商品描述(中文翻譯)
解開 Java 設計模式的力量,學習如何有效地應用它們來解決特定的軟體設計和開發問題。
主要特點
- 通過依賴注入來解耦物件之間的邏輯,創建具有不同功能的各種車輛
- 使用責任鏈模式(Chain of Responsibility Pattern)鏈接處理程序以完成車輛建構
- 使用排程模式(Scheduler Pattern)計劃和執行高級車輛感測器啟動
書籍描述
設計模式是針對軟體設計和開發中標準問題的經驗解決方案,使您能夠創建可重用、靈活且易於維護的程式碼。本書使您能夠通過理解流行的模式來提升技能,進而成為一名熟練的軟體開發者。
您將從探索 Java 平台開始,以理解和實現設計模式。然後,通過各種範例,您將創建不同類型的車輛或其部件,以便在設計模式思維中提供清晰度,並使用專門的設計模式開發新的車輛實例,使過程保持一致。隨著進展,您將發現如何擴展車輛功能,並保持程式碼基礎結構和行為的整潔與光亮。並發性在應用程式設計中扮演重要角色,您將學習如何使用設計模式來可視化執行緒互動。最後幾章將幫助您識別和理解在開發早期階段使用反模式(anti-pattern)的情況,以便順利進行重構。本書涵蓋了 Java 17+ 的特性,如模式匹配、switch 語句和實例增強,以提高生產力。
在本書結束時,您將獲得 Java 設計模式的實用知識,並能夠應用它們來解決常見的設計問題。
您將學到的內容
- 理解可以使用 Java 設計模式解決的最常見問題
- 揭示 Java 的構建元素、其用法和並發可能性
- 使用享元模式(Flyweight Pattern)優化車輛的記憶體佔用
- 探索觀察者模式(observer pattern)中實例之間的一對多關係
- 發現如何使用訪問者模式(visitor pattern)來路由車輛消息
- 利用和控制車輛資源,使用執行緒池模式(thread-pool pattern)
- 理解反模式在軟體設計中造成的損失
本書適合對象
如果您是一位中級 Java 開發者或軟體架構師,想要學習 Java 中軟體設計模式的實際應用,那麼這本書適合您。無需具備設計模式的先前知識,但需要理解 Java 程式設計。
目錄大綱
1. Getting Into Software Design Patterns
2. Discovering the Java Platform for Design Patterns
3. Working with Creational Design Patterns
4. Applying Structural Design Patterns
5. Behavioral Design Patterns
6. Concurrency Design Patterns
7. Understanding Common Anti-Patterns
目錄大綱(中文翻譯)
1. Getting Into Software Design Patterns
2. Discovering the Java Platform for Design Patterns
3. Working with Creational Design Patterns
4. Applying Structural Design Patterns
5. Behavioral Design Patterns
6. Concurrency Design Patterns
7. Understanding Common Anti-Patterns