Forums Register Login

Design Patterns??

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
How many bar tenders do we have? I thought we just had Max and Mark, R u a new bartender.?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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,
+Pie Number of slices to send: Send
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!
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 778 times.
Similar Threads
Patterns and more Patterns
Confused about Patterns
Questions on Design Patterns
Successfully cleared Part I - 95%
Difference between two design patterns books
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:03:08.