What are advantages and disadvantages of Design patterns?
Answers were Sorted based on User's Feedback
Answer / reejusri
Benefits:
1. enable large scale reuse of S/W
2. Helps in improve developer communication
3. capture expert knowledge and design trade-offs and make
expertise widely available
Drawbacks:
1.Do not lead to direct code reuse
2. Complex in nature
3. they are deceptivrly simple
4. they are validated by experince and discussion
Is This Answer Correct ? | 146 Yes | 35 No |
Answer / prits
Advantages:
A design pattern is:
•
a standard solution to a common programming problem
•
a technique for making code more flexible by making it meet
certain criteria
•
a design or implementation structure that achieves a
particular purpose
•
a high-level programming idiom
•
shorthand for describing certain aspects of program
organization
•
connections among program components
•
the shape of an object diagram or object model
DisAdvantages:
Design patterns may increase or decrease the
understandability of a design or implementation. They can
decrease understandability by adding indirection or
increasing the amount of code.
Is This Answer Correct ? | 58 Yes | 26 No |
Answer / shashikant
Design patterns help overcome this problem because they teach the lessons distilled from experience by experts: patterns document expertise. Further, patterns not only describe how software is structured, but more importantly, they also describe how classes and objects interact, especially at run time. Taking these interactions and their consequences explicitly into account leads to more flexible and reusable software.
Is This Answer Correct ? | 14 Yes | 3 No |
Answer / favour chidimma okpara
advantage of drafting Patten. 1)they are cheap disadvantage of drafting Patten. 1)it is used to one person that is only the owner.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / paul
The advantages are that design patterns are solutions to repetitive problems in object orientated programming (solutions that can be re-used over and over and applied to different areas and different problems). They are templates for you to base your solutions on.
Disadvantages are picking the correct design pattern and understanding how to implement that pattern to your scenario and knowing what to name your classes, so as to make it clearer for future programmers.
Is This Answer Correct ? | 6 Yes | 14 No |
Answer / venkatesh
An additional disadvantage is :
1> They consume more memory because of generalised format
they are written, to store any kind of data .
Is This Answer Correct ? | 24 Yes | 46 No |
Answer / graciela perez
I dont really know but im going to make a guess. I think the
Advantage is the constant rate it has in it i mean duhhh
helloo :)
Is This Answer Correct ? | 5 Yes | 39 No |
Implement strcmp
What is function prototyping? What are its advantages?
What is a virtual destructor? Explain the use of it?
Is string data type in c++?
What is #include iostream?
What is called array?
What is the difference between set and map in c++?
What is data structure in c++?
why all c++ program must have default constructor?
Any one help me plzzzz..... i have an assignment...... that is ______*********_______ Write a program that takes an equation as a string and does the following: Solve 8 parts to achieve 100% 1 - 5 are compulsory. Input: 2x^2+3x+4=0 1) read a quadratic equation 2) print its coefficients (coefficients range is 0 to 9) 3) print the solution of the equation 4) tackle imaginary solution e.g. ( (2+3i), (2-3i) ) 5) allow spaces within the input 6) after solving one equation; ask for an other, terminate on empty line. * 7) tackle negative values as well * 8) tackle more than one values of same exponent (e.g. 2x^2 + 3x^2 + 4x + 3 = 0)* 9) use strtok * 10) print the solution in fractions e.g. 1.5 should be printed as (1)1/2 * 11) coefficient can be greater than 9** 12) values on both sides of the ‘=’ sign** 13) plot the graph of the polynomial** 14) use a compiler other than Borland** 15) submit before May 25, 2009 11:59 PM ** _______******________ plz send me c++ code at sweety.alvi@gmail.com
Briefly describe a B+ tree. What is bulk loading in it?
When to use Multiple Inheritance?