Book description
Praise for Design Patterns Java™ Workbook
“An excellent book... I’m incredibly impressed with how readable it is. I understood every single chapter, and I think any reader with any Java familiarity would. This book is going to be required reading in a lot of places, including my office.”
—Joshua Engel
“Provides a new, more Java-literate way to understand the 23 GoF patterns.”
—Bob Hanmer
“This book translates Design Patterns into what Java programmers need to know. It is full of short, engaging programming and design problems with solutions—making it easy for programmers to work through solutions and really make patterns ‘stick.’”
—Rebecca Wirfs-Brock
“This is one exciting book. It’s approachable, readable, interesting, instructive, and just plain valuable. It’ll eclipse all other books purporting to teach people the GoF patterns in Java—and perhaps any other language.”
—John Vlissides
Java programmers, you now have the resource you need to harness the considerable power of design patterns. This unique book presents examples, exercises, and challenges that will help you apply design pattern theory to real-world problems. Steve Metsker's learn-by-doing approach helps you enhance your practical skills and build the confidence you need to use design patterns effectively in mission-critical applications.
Design Patterns Java™ Workbook features the twenty-three foundational design patterns introduced in the classic book Design Patterns (Addison-Wesley, 1995). In this new, hands-on workbook, the patterns are organized into five major categories: interfaces, responsibility, construction, operations, and extensions. Each category begins with a chapter that reviews and challenges your ability to apply facilities built into Java. These introductory sections are followed by chapters that explain a particular pattern in detail, demonstrate the pattern in use with UML diagrams and Java code, and provide programming problems for you to solve.
With this book you will build expertise in important areas such as:
Adapting domain data to Swing components
Creating a FACADE for Swing
Handling recursion in composites
Understanding the role of BRIDGE in Java database connectivity
Making the connection between Model/View/Controller and OBSERVER
Maintaining relational integrity with a mediator
Using proxies to communicate between computers
Letting a service provider decide which class to instantiate
Supporting undo operations with MEMENTO
Prototyping with clones
Using COMMAND to supply a service
Developing thread-safe iterators
Extending classes with DECORATOR and VISITOR
Solutions to the design pattern challenges appear in the back of the book, so you can compare your own work to expert approaches. A brief guide to UML explains the modeling notation, and an accompanying Web site provides all the code examples from the book.
Through the instruction and exercises offered in Design Patterns Java™ Workbook, you can fully understand the role of design patterns in Java application development, and enhance your ability to put design patterns to work.
Table of contents
- Copyright
- Praise for Design Patterns Java™ Workbook
- Foreword
- Preface
- Introduction To Patterns
- Interface Patterns
- Responsibility Patterns
- Construction Patterns
- Operation Patterns
- Extension Patterns
-
Appendixes
- Directions
-
Solutions
- Introducing Interfaces (Chapter 2)
- Adapter (Chapter 3)
- Facade (Chapter 4)
- Composite (Chapter 5)
- Bridge (Chapter 6)
- Introducing Responsibility (Chapter 7)
- Singleton (Chapter 8)
- Observer (Chapter 9)
- Mediator (Chapter 10)
- Proxy (Chapter 11)
- Chain of Responsibility (Chapter 12)
- Flyweight (Chapter 13)
- Introducing Construction (Chapter 14)
- Builder (Chapter 15)
- Factory Method (Chapter 16)
- Abstract Factory (Chapter 17)
- Prototype (Chapter 18)
- Memento (Chapter 19)
- Introducing Operations (Chapter 20)
- Template Method (Chapter 21)
- State (Chapter 22)
- Strategy (Chapter 23)
- Command (Chapter 24)
- Interpreter (Chapter 25)
- Introducing Extensions (Chapter 26)
- Decorator (Chapter 27)
- Iterator (Chapter 28)
- Visitor (Chapter 29)
- UML AT A GLANCE
- Glossary
- Bibliography
- Index
Product information
- Title: Design Patterns Java™ Workbook
- Author(s):
- Release date: March 2002
- Publisher(s): Addison-Wesley Professional
- ISBN: 0201743973
You might also like
book
Design Patterns For Dummies®
There's a pattern here, and here's how to use it! Find out how the 23 leading …
book
Design Patterns in Java™, Second Edition
gives you the hands-on practice and deep insight you need to fully leverage the significant power …
book
Java™ Design Patterns: A Tutorial
Design patterns have become a staple of object-oriented design and programming by providing elegant, easy-to-reuse, and …
book
Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition
"One of the great things about the book is the way the authors explain concepts very …