Java Design Patterns (2nd Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已经能写 Java 代码、但设计上常常“写完就改不动”的中级开发者
- 读过 GoF《设计模式》却不知道如何在项目中落地的读者
- 准备重构遗留代码、需要一套判断标准的工程师
- 讲授面向对象分析与设计、软件体系结构课程的教师与高年级学生
Not a good fit for
- 完全没有 Java 与面向对象基础的初学者,本书不讲解语法与基本概念
- 只想查阅模式定义速查表的读者,本书以练习驱动的讲解为主
- 主要使用函数式风格或非面向对象语言的开发者,收获会相对有限
Reading tips
- 强烈建议先动手做每章练习再看附录 B 的答案,只读不做会损失本书大半价值。
- 配合原书 Oozinoz 源码边读边改,把示例代码跑起来再尝试重构。
- 按五个部分的顺序读,每部分导引章不要跳过,它决定了你理解模式的框架。
- 读完一种模式后,回到自己的项目寻找一处可以应用或反证它的代码。
About the publisher
The Publishing House of Electronics Industry is a comprehensive publisher distinguished by its focus on electronic information and related fields. Judging from the more than 3,000 titles in its catalogue, its publishing covers programming and design, artificial intelligence, computer science, finance and economics, photography, and social sciences, attending both to cutting-edge technology and to general readers. Representative titles include Factor Investing: Methods and Practice, x86 Assembly Language: From Real Mode to Protected Mode, The RISC-V Reader, Artificial Intelligence: Speech Recognition, Understanding and Practice, Phased Array Radar Technology, Radar Target Characteristics, and 100 Go Mistakes and How to Avoid Them, most of which centre on technical methods and engineering practice. Its authors include Shi Chuan, Li Zhong, Wang Xiaobo, David Patterson, Andrew Waterman, and Yu Zihao, among others from China and abroad. Owing to limited public information, no further publishing features are elaborated here.
Contents
- Chapter 1 Introduction
- Part 1 Interface Patterns
- Chapter 2 Introduction to Interface Patterns
- Chapter 3 Adapter Pattern
- Chapter 4 Facade Pattern
- Chapter 5 Composite Pattern
- Chapter 6 Bridge Pattern
- Part 2 Responsibility Patterns
- Chapter 7 Introduction to Responsibility Patterns
- Chapter 8 Singleton Pattern
- Chapter 9 Observer Pattern
- Chapter 10 Mediator Pattern
- Chapter 11 Proxy Pattern
- Chapter 12 Chain of Responsibility Pattern
- Chapter 13 Flyweight Pattern
- Part 3 Construction Patterns
- Chapter 14 Introduction to Construction Patterns
- Chapter 15 Builder Pattern
- Chapter 16 Factory Method Pattern
- Chapter 17 Abstract Factory Pattern
- Chapter 18 Prototype Pattern
- Chapter 19 Memento Pattern
- Part 4 Operation Patterns
- Chapter 20 Introduction to Operation Patterns
- Chapter 21 Template Method Pattern
- Chapter 22 State Pattern
- Chapter 23 Strategy Pattern
- Chapter 24 Command Pattern
- Chapter 25 Interpreter Pattern
- Part 5 Extension Patterns
- Chapter 26 Introduction to Extension Patterns
- Chapter 27 Decorator Pattern
- Chapter 28 Iterator Pattern
- Chapter 29 Visitor Pattern
- Appendix A Guide
- Appendix B Answers
- Appendix C Oozinoz Source Code
- Appendix D UML Overview
- References
FAQ
这本书和 GoF 的《设计模式》是什么关系?
书中的代码是什么 Java 版本?现在读会过时吗?
这本书的分类为什么和常见的三种类型不一样?
Oozinoz 是什么?需要自己下载源码吗?
练习有答案吗?自学能看懂吗?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.