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 Design Patterm Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Design Patterm Doubt" Watch "Design Patterm Doubt" New topic
Author

Design Patterm Doubt

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
I have worked on Core Java, JSP, Servlets and Struts. But I don't know Design Patterns. My question is how far the design pattern is useful for developers? or Let rephrase the question, whether the developer has to know design patterns?

Any way, I am in interest of learning Design Patterns. Which is the best book for Design Patterns for beginners?


Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
lin yic
Greenhorn

Joined: Nov 06, 2006
Posts: 11
Originally posted by Micheal John:
I have worked on Core Java, JSP, Servlets and Struts. But I don't know Design Patterns. My question is how far the design pattern is useful for developers? or Let rephrase the question, whether the developer has to know design patterns?

Any way, I am in interest of learning Design Patterns. Which is the best book for Design Patterns for beginners?


Hi,
I think if you know design pattern,you will know what you are doing and be more clear about your code.Also you will learn the experience from the other gurus.
The struts framework has used many design patterns such MVC,Template Method,Singleton.
For example,when we create a class that extends Action,we write our own execute method,the others is implemented by the Action base class.this is a template method pattern.
For me,the design pattern book that i think is good is the 'head first',the book is easy to read and understand.
Maybe you can have a look at it.
[ November 07, 2006: Message edited by: lin yic ]
Ådne Brunborg
Ranch Hand

Joined: Aug 05, 2005
Posts: 208
I didn't find the Head First Design Patterns as good as expected, compared to Head First EJB (which I found very useful). Personally, I learned more from reading the original GoF Design Patterns book. They are both good books, though, and either one should teach you what you need.

The HF book only brushes upon som of the patterns in the GoF book. The advantage of the HF book is that it focuses on the patterns that have become most widespread, and only brushes upon the patterns which isn't in widespread use. The advantage of the GoF book is that it covers all patterns well, and it is far easier to look up a pattern in it - as a reference work, it is the superior of the two. As a learning manual - it depends on your personal taste which is the better one.
[ November 07, 2006: Message edited by: �dne Brunborg ]

Entia non sunt multiplicanda praeter necessitatem
Ulas Ergin
Ranch Hand

Joined: Oct 10, 2002
Posts: 77
GoF book is in C++ and not as fun as Head First DP,I really liked it and recommend it agains Gof.

I also skimmed through Design Patterns Java Companion,Design patterns Java workbooks,Design Patterns in Java but none has nice samples as Head First.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
In my opinion, the GoF design patterns should be in the standard toolbox of every serious OO developer.

I found the GoF book a little bit dry to read, though, and found it much easier to understand after having read "Refactoring" by Martin Fowler.

The newer "Agile Software Development - Principles, Patterns and Practices" by Robert C. Martin also is a good introduction to the topic.

Moving to our OO forum...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Design Patterns are extremely useful, if only to create a common language around developers. I mean, it's easier to say "we need a singleton" than to start describing the singleton pattern everytime it needs to be used.

One thing I found frustrating about the GOF book was the fact that it was language agnostic. If the examples were in Java, I would have found it much easier to read.

Cheers!

-Cameron McKenzie
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Cameron Mckenzie wrote: If the examples were in Java, I would have found it much easier to read.

If that's an issue, consider Design Patterns in Java.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Also Thinking in Patterns in Java which is free online. I only gave it a quick read a while ago and didn't think it added much to the "dryness" of the GOF even though all the examples are in Java. Let us know if you like it.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design Patterm Doubt
 
Similar Threads
Pattern Interview questions
Patterns examples with code.
Re: Java Design Certification
Design Patterns, best resource?
patterns