Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep, I would dare to say that most design patterns do not decrease performance in any significant way. An extra method call costs close to nothing.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
It does hide the EJB layer (Lookup and exception hidden). My question how big is this advantage?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Lasse Koskela:
I'd be interested to hear about particular patterns that degrade performance somehow significantly because I can't think of any. (I could browse the bookshelf but I'm too lazy to do that...)
The secret to creativity is knowing how to hide your sources.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
- <b><i>Deepak Alur</i></b><br />Co-Author of <a href="http://www.corej2eepatterns.com" target="_blank" rel="nofollow">Core J2EE Patterns: Best Practices and Design Strategis</a>
Originally posted by Pradeep Bhat:
[QB]Patterns does increase the complexity of the system but does maintenance easier. Some patterns increase overhead ...[QB]
Juan Rolando Prieur-Reza, M.S., LSSBB, SCEA, SCBCD, SCWCD, SCJP/1.6, IBM OOAD, SCSA
The secret to creativity is knowing how to hide your sources.
Should the issues related to design patterns be almost entirely left to the architect or are they just as important for developers?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
The secret to creativity is knowing how to hide your sources.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
The secret to creativity is knowing how to hide your sources.
Originally posted by Faisal Khan:
I thought, I may not have made full sense. My question, I guess really is, should I be using scenario 1 or 2 above from a good design perspectve.
That is, should I continue down the path of having one Database.class with a method performQuery( String query ) and all my classes use this class for querying the DB.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I've never won anything before. Not even a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|