File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes Is DESIGN PATTERNS JAVA COMPANION good book? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Is DESIGN PATTERNS JAVA COMPANION good book?" Watch "Is DESIGN PATTERNS JAVA COMPANION good book?" New topic
Author

Is DESIGN PATTERNS JAVA COMPANION good book?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
This book lists 23 design patterns. Have you found these patterns useful? Can anybody compare this book to "Design Patterns Explained: A New Perspective on Object-Oriented Design"?
Bruce


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Alan Shalloway
Ranch Hand

Joined: Sep 26, 2001
Posts: 60
I am not sure what book you are talking about. Who is the author? Grand has a book called Patterns in Java, Volume one which re-hashes the Gang of Four's Design Patterns: Elements of Reusable Object-Oriented Design - still the best book on patterns (or at least the best once you know what they are).
The difference between virtually all design pattern books and ours: Design Patterns Explained: A New Perspective on Object-Oriented Design, is that our book is more about why design patterns are good designs. The intent is so you understand what good design is and can then do that whether patterns are present or not. Essentially, we teach design patterns in a way that the reader gains an understanding of the principles and rationale for the patterns, what is driving them, and how to use them. We also use the patterns to teach the reader what object-orientation is really all about ("why you care about inheritance" rather than "here is inheritance, now go use it..."). At the end, the reader is equipped to use the more in-depth design patterns books.
The problem with learning patterns is that there are so many out there that it is unlikely you will really know the ones you need. What you need to learn are what are the important things to look for. Patterns teach us this. By learning a few patterns that teach us how to identify and classify what is important in one problem domain we learn how to extend this ability to other domains, even when we arent' sure what the patterns are.
------------------
Alan Shalloway,
Look for Jim Trott and my book: Design Patterns Explained
Visit our site Net Objectives.


Alan Shalloway.<BR>Look for Jim Trott and my book: <A HREF="http://www.amazon.com/exec/obidos/ASIN/0201715945/ref=ase_electricporkchop/103-0514572-3811868" TARGET=_blank rel="nofollow">Design Patterns Explained</A><BR>Visit our site <A HREF="http://www.netobjectives.com" TARGET=_blank rel="nofollow">Net Objectives</A>.<BR>Visit our <A HREF="http://www.netobjectives.com/dpexplained/index.html" TARGET=_blank rel="nofollow">Design Patterns Explained Community of Practice</A><BR>Check out our <A HREF="http://www.netobjectives.com/xml/xml_cdrom_info.htm" TARGET=_blank rel="nofollow">CDROM based audio training in XML</A>
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
Sorry. I was talking about the book �DESIGN PATTERNS JAVA COMPANION� as shown in the topic line. The Author is James Cooper.
I wish to know if your book is specific for Java design. Do you give examples in C or Java or something else?
Thanks a lot for your response.
Bruce
Kevin Yip
Ranch Hand

Joined: Oct 17, 2000
Posts: 110
I just got this book and is starting to read it. Look like the book is easier to understand that that of the Gang of Four, and it gives examples in Java too.
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
Which book are you talking about? �Design Patterns Java Companion� or �Design Patterns Explained?

Originally posted by Kevin Yip:
I just got this book and is starting to read it. Look like the book is easier to understand that that of the Gang of Four, and it gives examples in Java too.

Alan Shalloway
Ranch Hand

Joined: Sep 26, 2001
Posts: 60
Originally posted by Bruce Jin:
Sorry. I was talking about the book �DESIGN PATTERNS JAVA COMPANION� as shown in the topic line. The Author is James Cooper.
I wish to know if your book is specific for Java design. Do you give examples in C or Java or something else?
Thanks a lot for your response.
Bruce


Our book has both Java and C++ examples. If you read the book and don't like the examples enough, readers can make requests on our Design Patterns Explained Discussion group (see discussion under: www.netobjectives.com/dpexplained and request more detail). Re Cooper's book, I don't really like it. The examples aren't bad for just understanding the patterns individually, but there is no real explanation about patterns working together or why they work. That is, what makes good design good design? Issues such as cohesion, coupling, polymorphism, encapsulating variation, objects being responsible for themselves are all illustrated with design patterns.
I think the quality differences of our books are reflected in Cooper's rating of 2.6 at Amazon while ours is 4.4. Furthermore, the two 3s we got only gave us that because we weren't an advanced book (which we never claim to be).
We wrote our book as the book to start reading to learn what patterns were about. After you get an understanding of good object-oriented design and why patterns work, I suggest going on to the Gang of Four's and Grand's book on patterns.

------------------
Alan Shalloway,
Look for Jim Trott and my book: Design Patterns Explained
Visit our site Net Objectives.
Visit our on-line companion to the book
Rich Cohen
Greenhorn

Joined: Oct 01, 2001
Posts: 6
I do not recommend Cooper's book on design patterns in Java. It does have good UML diagrams. In the few sections I read, his examples seemed to obscure the use of the design pattern more than they illustrated it.
Da Zhu
Greenhorn

Joined: Jan 02, 2001
Posts: 29
I do not recommend Cooper's book. The explaination of the
patterns are not clear. You can not study this book alone.
If you study this book with GoF book, then I assume it brings
no harm, but it does not bring much extra either.
Alan's approach is better: the design pattern are applications
of object-oriented principles, not separated gems. It is a
good introductory book, although it does not cover all GoF patterns.
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
Hi Rich and Da;
Cooper�s book is the only Design Pattern book that I read. I found that it is of a little bit help in my daily Java programmer�s life. I wonder how important it is to master some design pattern skills for a Java programmer who�s function is to code and to design small to medium size programs. How Design Patterns Explained will be of help?
Bruce
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is DESIGN PATTERNS JAVA COMPANION good book?