This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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
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
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 ]
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
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.