aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes do we need EXPERIENCE for design patterns ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "do we need EXPERIENCE for design patterns ?" Watch "do we need EXPERIENCE for design patterns ?" New topic
Author

do we need EXPERIENCE for design patterns ?

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
Hi all,

I have been seeing lots of question in David BridgeWater's book. These questions are really testing whether you can really give a choice, provided with a design scenario. A sample question is -

A company has a message queuing system, accessible with complex Java APIs. The company wants a new web application but also wants to minimize the specialized knowledge required to write business code that accesses the queuing system. Which J2EE patterns might best help the
company with this problem? (Choose two.)
A. Front Controller
B. Front Director
C. Business Controller
D. Service Locator
E. View Controller
F. Business Delegate


this is how a HFSJ reader proceeds -

weed wout B,C,E - as no pattern by such name !
now what remain are - A,D and F. now since the question talks of BUSINESS CODE , we weed out A. so the answer are D,F ( the innocent HFSJ reader thanks to the question as it tells how many options to choose ).

but here is the explaantion give in the Davi BridgeWater book !

D and F are the correct answers. The Service Locator pattern can be used to isolate the code that finds references to the objects that give access to the queuing system. The Business Delegate pattern can be used to translate simple method calls (used by the business code) into
the complex method calls required by the queuing system.

A is incorrect: Front Controller doesn�t address complexity at the model end. B, C, and E are incorrect because they have made-up or incomplete pattern names.

dont you guys get shocked by rading stuff thats in bold ? I do agree that the question is manageable, but....!!

one more -

1. Which of the following patterns can reduce network overhead? (Choose one.)
A. Model View Controller
B. Business Delegate
C. Service Locator
D. Transfer Object
E. All of the above
F. B, C, and D above

the HFSJ reader is excited by the word - reduce network overhead and he quickly chooses D. but here is what david bridge water says -

1. F is the correct answer. Business Delegate can reduce network overhead by caching results
of executing business methods (where appropriate). Service Locator can cache references to
remote objects to avoid making repeated networked calls to (mostly) JNDI code. Transfer
Object collects together lots of data that might otherwise be garnered by repeated network
calls.
A is incorrect�Model View Controller is about the separation of concerns and doesn�t
directly address any network issues. B, C, and D are all patterns that contribute to reducing
network overhead, but no one of these answers is correct on its own. E is incorrect because
MVC is included in the list.

so , DOES HFSH ADDS ALL DIMENSION THAT ONE MUST THINK IN, WHILE ASWERING THE DESIGN PATTERN QUESTIONS ?


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Dinuka Arsakularatne
Ranch Hand

Joined: Aug 12, 2006
Posts: 198
hfsj is more than enough to answer all desing pattern questions on the exam successfully.


if who i am is what i have, and what i have is lost, then who am i?<br /> <br />SCJP 5.0<br />SCWCD 1.4<br />SCBCD preparing
Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
Other that the patterns mentioned in the HFSJ, I have seen "Data Access Object" in mock exams.


Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
hfsj is more than enough to answer all desing pattern questions on the exam successfully.


hmm..dinuka..thanks for the reply !
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Originally posted by Dilshan Edirisuriya:
Other that the patterns mentioned in the HFSJ, I have seen "Data Access Object" in mock exams.

I have added the following to the ScwcdFaq:

Why am I seeing Design Patterns in mock exams that aren't in the objectives?
Mock exams, as well as the real exam, contain answer options other than the 6 Design Patterns from the objectives. Those extra patterns are never the correct answer. Ever. Use this knowledge to your advantage.


A good workman is known by his tools.
Anitha Srinivasan
Ranch Hand

Joined: Nov 07, 2006
Posts: 53
Thanks Marc.
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

I think it helps a lot if you have already had the chance to work on a project where design patterns were implemented.
Else the concepts remain very abstract and it's harder to memorize and to choose the right design pattern that suits best to a situation.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
indu pai
Greenhorn

Joined: Dec 29, 2004
Posts: 17
Hi Niranjan ,

I have been seeing lots of question in David BridgeWater's book. These questions are really testing whether you can really give a choice, provided with a design scenario.


Can you please give me the name of the book? I am looking for a GOOD book for Design patterns.
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
Can you please give me the name of the book? I am looking for a GOOD book for Design patterns.


its not a deign pattern book
its a book on WCD exam.
its similar in style to the scjp 1.4 book

i used it for test at the end of the chapter in it !
that way i can expose myself to more questions.

hth
indu pai
Greenhorn

Joined: Dec 29, 2004
Posts: 17
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: do we need EXPERIENCE for design patterns ?