What are advantages and disadvantages of Design patterns?




Answers were Sorted based on User's Feedback



What are advantages and disadvantages of Design patterns?..

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 ?    128 Yes 33 No

What are advantages and disadvantages of Design patterns?..

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 ?    53 Yes 24 No

What are advantages and disadvantages of Design patterns?..

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 ?    11 Yes 3 No




What are advantages and disadvantages of Design patterns?..

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 ?    0 Yes 0 No

What are advantages and disadvantages of Design patterns?..

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 ?    4 Yes 11 No

What are advantages and disadvantages of Design patterns?..

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 43 No

What are advantages and disadvantages of Design patterns?..

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 34 No

Post New Answer



More C++ General Interview Questions

Adobe Interview & Adobe Placement Paper

1 Answers   Adobe,


Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";

7 Answers   CTS,


What are the techniques you use for debugging?

1 Answers   Adtran,


Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; }

2 Answers   Impetus,


make a middle node of doubly linklist to the top of the list

1 Answers  






How to change constant values?

6 Answers   Symphony, Huawei,


what is object?

7 Answers  


when can we use copy constructor?

6 Answers   HP,


what are the iterator and generic algorithms.

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

0 Answers   CTS,


is throwing exception from a constructor not a good practice ?

5 Answers   Ericsson,


write the prime no program in c++?

16 Answers  






Categories