This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Basic Doubts in Design Patterns 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 » Java » Beginning Java
Bookmark "Basic Doubts in Design Patterns" Watch "Basic Doubts in Design Patterns" New topic
Author

Basic Doubts in Design Patterns

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
I want to learn Design Patterns. I am planning to buy the HFDP book. But my friend is telling HFDP is having only Java Design Patterns and they don't cover J2EE Design Patterns.

How Java Design Pattern differ from J2EE Design Patter? First of all, I have to ge the basic ideas in Design Pattern. Can I say, If I am learning Java Design Pattern, then J2EE Pattern learning curve will be easy?

What is GoF pattern? And also I want to know how many patters are there in Java and J2EE? Who are developers/developing new Patterns and whether new patterns will keep on growing..?


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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Micheal,
HFDP is a good starting point. You are correct that they cover Java patterns and not J2EE patterns. However, it is important to know Java design patterns first as the J2EE patterns build on them.

Learning J2EE patterns is easy once you know Java patterns and J2EE.

GoF (gang of four) patterns are famous patterns. The important ones are covered in HFDP.

There is a potentially unlimited number of patterns. The idea is to know the estabilished/common ones and have the ability to understand relevant ones as needed.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Jeanne Boyarsky:
... HFDP is a good starting point...

I agree. HFDP is the place to start. Consider this required reading.

I would add that you can download Bruce Eckel's Thinking in Patterns with Java for free. Note that this is a work "in progress" (and I don't get the sense it will be completed any time soon), and it doesn't provide the detailed explanations that Head First does, but I think the code examples are helpful.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
I just want to add two points to what already has been said.

1) The HFDP patterns aren't really "Java Patterns". HFDP covers a selection of the GoF patterns, and shows their implementation in Java. (The patterns themselves are more or less language neutral.)

2) The GoF patterns really are much more important than the J2EE patterns. They are very generic OO patterns that can be (and get) used in any OO system. The J2EE patterns are much more specific (some people say they are in fact just workarounds to the shortcomings of J2EE) - and many of them are in fact specializations of the GoF patterns.


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
Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344
Thanks Jeanne Boyarsky,marc weber and Ilja Preuss for your kind advise.
I have bought the Head First Design Pattern Book..let I go thru' it and come back..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic Doubts in Design Patterns
 
Similar Threads
Head First Design Pattern
Abstract Factory and Factory Pattern applied to Sun's Blueprint on DAO
How to effectively learn and use OO, Patterns
Great book HFDP
Yet another design patterns book?