File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

do we need EXPERIENCE for design patterns ?

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Dinuka Arsakularatne
Ranch Hand
Posts: 198
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hfsj is more than enough to answer all desing pattern questions on the exam successfully.
 
Dilshan Edirisuriya
Ranch Hand
Posts: 299
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Other that the patterns mentioned in the HFSJ, I have seen "Data Access Object" in mock exams.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anitha Srinivasan
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc.
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
indu pai
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1277
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic