Book description
The existing books on design patterns take a catalog approach, where they show the individual design patterns in isolation. This approach is fundamentally flawed, because you can't see how the design patterns actually function in the real world. Most programmers learn by looking at computer programs.
Holub on Patterns: Learning Design Patterns by Looking at Code teaches you design patterns in exactly this way: by looking at computer programs and analyzing them in terms of the patterns that they use. Consequently, you learn how the patterns actually occur in the real world and how to apply the patterns to solve real problems.
This book also looks at the broader context of object-oriented (OO) design and how patterns solve commonplace OO design problems. It covers many of the principles of OO design—principles not covered by most books on Java—and shows you how to apply these principles to make your code easier to maintain and debug.
Table of contents
- Coverpage
- Titlepage
- Copyright
- Dedication
- Contents
- About the Author
- Acknowledgments
- Preface
- CHAPTER 1 Preliminaries: OO and Design Patterns
- CHAPTER 2 Programming with Interfaces, and a Few Creational Patterns
-
CHAPTER 3 The Game of Life
- Get a Life
- Charting the Structure of Life
- The Clock Subsystem: Observer
- The Clock Subsystem: The Visitor Pattern
- The Menuing Subsystem: Composite
- The Menuing Subsystem: Facade and Bridge
- The MenuSite
- The Core Classes
- Mediator
- Composite Revisited
- Composite Redux
- Flyweight
- Memento
- Loose Ends
- Summing Up
-
CHAPTER 4 Implementing Embedded SQL
- The Requirements
- The Architecture
-
The Data-Storage Layer
- The Table Interface
- The Bridge Pattern
- Creating a Table, Abstract Factory
- Creating and Saving a Table: Passive Iterators and Builder
- Populating the Table
- Examining a Table: The Iterator Pattern
- Implementing Transactions (Undo) with the Command Pattern
- Modifying a Table: The Strategy Pattern
- Selection and Joins
- Miscellany
- Variants on the Table: The Decorator Pattern
- Adding SQL to the Mix
- The Database Class
- The Interpreter Pattern
- The JDBC Layer
- The State Pattern and JDBCConnection
- Whew!
- APPENDIX A Design-Pattern Quick Reference
- INDEX
Product information
- Title: Holub on Patterns: Learning Design Patterns by Looking at Code
- Author(s):
- Release date: September 2004
- Publisher(s): Apress
- ISBN: 9781430207252
You might also like
book
Learning Python Design Patterns - Second Edition
Leverage the power of Python design patterns to solve real-world problems in software architecture and design …
book
Functional Programming in Java
Get ready to program in a whole new way. Functional Programming in Java will help you …
video
Learn Java Design Patterns: The Complete Guide
If you are an intermediate to advanced Java developer or a developer in any other OOP …
book
Java Concurrency in Practice
"I was fortunate indeed to have worked with a fantastic team on the design and implementation …