• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Patterns??

 
cynthia ****
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Prakash Krishnamurthy
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many bar tenders do we have? I thought we just had Max and Mark, R u a new bartender.?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mauricio De Maria
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic