1 z 157
Thinking in Patterns by Bruce Eckel
Revision 0.9, 5-20-2003 (This version contains the material that will
be used in the Crested Butte seminar; see
http://www.mindview.net/Seminars/ThinkingInPatterns/)
Please note this document is under development and incomplete.
Updates to this document can be found at http://www.Mindview.net
Best viewed with Mozilla! (free at www.Mozilla.org) (Even though this
document was created with MS Word, IE6 garbles lines with
superscripts on them. Mozilla seems to do a much better job).
___________________________________________
Note: This document requires the installation of the fonts Georgia, Verdana and Andale
Mono (code font) for proper viewing. These can be found at:
http://sourceforge.net/project/showfiles.php?group_id=34153&release_id=105355
Modifications in Revision 0.9:
• Prose has still had little/no work. My current goal is to get the structure and examples
worked out so that the seminar works well. Once it has been proven in the seminars,
then I will spend time on the prose.
•
Added proxy:PoolManager.java to make a more generic/customizeable Pool Manager,
and modified proxy:ConnectionPoolProxyDemo.java accordingly [[ Still need to
decide what to return when you run out of objects in the pool ]]
•
Changed PoolManager.java to use an ArrayList (and thus does not require a fixed size
at initialization)
•
Added KissingPrincess.java to State description, as a motivational example for the
pattern
•
Added a simple Flyweight example
•
Simplified the enumeration in PaperScissorsRock.java
Modifications in Revision 0.8:
• Changed Bridge example to improve clarity.
•
Removed superscripts for better viewing with IE (see note above)
Modifications in Revision 0.7:
• NOTE primary changes have been made to structure of book and code
examples, but not to prose. Prose can be considered to be mostly a mess in
this revision.
•
Complete reorganization under headings that attempt to describe the problems you
are trying to solve with a pattern.
•
Addition of placeholders for the remainder of the GoF patterns
•
Addition of “Simplifying Idioms” section and examples
•
Addition of Builder section and examples
•
Removed unit-testing chapter; replaced with reference to “new” JUnit (which uses
reflection)
•
(4-30-2003) Added Ant build.xml files, and support files from TIJ necessary to do a
full standalone build. You should be able to t
yp
e
“ant” from the code root director
y