Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
If you have a correct design pattern, does it decrease amount of bug error based on your experience? I have no clue about it.
Posted
Comments
Sergey Alexandrovich Kryukov 25-Oct-14 23:35pm    
What is "bugerror"? "bug error"? The general meaning looks clear, you are asking about making less bugs, but better be careful with phrasing...
—SA
deelll 26-Oct-14 3:49am    
If I may extress 'software error' instead of 'bug error'. Does MVC make less software error?

1 solution

The whole approach, or a way of thinking, is wrong. The design patterns have nothing to do with amount of bugs.

Those patterns are published to help developers avoid repeating some design work again and again, using well-tuned design solutions developed by other people before. You may understand it better if you read this article: http://en.wikipedia.org/wiki/Design_pattern[^].
Design pattern in not theory, it's a generalized design solution which have its limits of applicability and certain rationale. One cannot "have" the pattern. A developer can use the pattern only after she/he analyzed possible approached to the solution of some problem and can judge if one or another pattern can be useful. Some developers try to see the use of a patter as a goal of development; and this is a big mistake — the goals are set by the prospective use of the programming system, its utility, and some pattern can be nothing more that one of the many means for reaching these goals. In some pathological cases, developers try to stick all patterns they know in some project. The is like adding problems for the sake of solving them.

Now, as the the bugs, the whole situation is well described by one proverb from my native culture:
"For a "good" dancer, even his legs make a hassle". (Actually, more popular folk version of this proverb uses more explicit language, mentioning some other bogy parts. :-)) A patten can help to reduce the number of bugs only indirectly, in cases when it helps to write less code, for example. A person who tends to make many bugs due to lack of accuracy and regular approach, poor understanding of technology and best development practices will add even more bugs in the implementation of the design pattern. :-)

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900