File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Design Patterns?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Design Patterns??" Watch "Design Patterns??" New topic
Author

Design Patterns??

cynthia ****
Greenhorn

Joined: Feb 01, 2003
Posts: 2
I have recieved my assignment and I have had no prior working experience in java.
Could anyone please help me out with the design patterns?
I would like to know why design pattens and is it
compulsory to use them?And how much of the design patterns should I know?
Any help would be really appreciated.
Thank You,
cynthia
Prakash Krishnamurthy
Ranch Hand

Joined: Oct 08, 2002
Posts: 154
Cynthia:
I did not have a lot of experinece with Design Pattersn too before I downloaded this assignment.
Go through the Factory Pattern, the singleton Pattern, Facade pattern and a proxy pattern. These are the main patterns that would be needed for this assignment.
PK
Perry Board
Greenhorn

Joined: May 03, 2003
Posts: 29
Here's a site that has some descriptions of design patterns.
http://home.earthlink.net/~huston2/dp/patterns.html
An existing pattern helps in several ways. First, you can explain your program design to someone else (in this case, the Sun assessor). Second, design patterns provide existing good, object-oriented solutions to common scenarios, helping you to avoid re-inventing the wheel. They are just generic patterns, so you need to do the work of implementing them.
My assignment says something like, "a clear design is preferred to a complex one." Often, a pattern will help make the design more clear. Other times, it could be that you are rigidly following design patterns that overly complicate things. For example, you could create a "Factory" class to make a decision about what type of object to instantiate. But if you can accomplish the same thing in a quick if-statement, the Factory might be overkill, especially if that part of the code is not likely to be reused.
The Model-View-Controller pattern is also important for GUI work. I believe Sun even has their own page about it.
[ May 13, 2003: Message edited by: Perry Board ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Cynthia, welcome to JavaRanch. I'm sure you will
have fun and enjoy participating in the forums,
expecially this one. By the way, would you please take a look at JavaRanch's naming policy, and change those four stars into a conformant second name. Thanks, Barry


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Prakash Krishnamurthy
Ranch Hand

Joined: Oct 08, 2002
Posts: 154
How many bar tenders do we have? I thought we just had Max and Mark, R u a new bartender.?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Barry's been a bartender as long as Max - but Max and Mark are the designated bartenders of the Developer Cert forum. Which doens't mean Barry can't help out too, especially since he's spending time here working on his SCJD. Same for me. For display name issues like the one Barry noted, any bartender who sees it is welcome to post about it. Or even non-bartenders.


"I'm not back." - Bill Harding, Twister
Mauricio De Maria
Greenhorn

Joined: Apr 02, 2003
Posts: 10
HI Cynthia,
I've found a pretty useful link you might like about design patterns. Good thing, they have all examples written in JAVA:
http://www.patterndepot.com/put/8/JavaPatterns.htm
I would also recommend you to read Mehran Habibi's book http://www.amazon.ca/exec/obidos/ASIN/1590590309/702-9732592-0830461 which has a pretty good approach to the SCJD, with a complete project, code and everything. It's helping me a lot, since I'm not an experienced developer either.
Best Regards,
Dusty Bottoms
Greenhorn

Joined: May 22, 2003
Posts: 2
Mauricio,
Thanks a bunch! That's exactly what I needed to hear! I am in the same situation. I am going to read that book right now!
 
wood burning stoves
 
subject: Design Patterns??