DCSIMG
Do We Need Design Patterns? - Gil Fink's Blog

Gil Fink's Blog

Fink about IT

News

Microsoft MVP

My Facebook Profile My Twitter Profile My Linkedin Profile

Locations of visitors to this page

Creative Commons License

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2012 Gil Fink

Hebrew Articles

Index Pages

My OSS Projects

English Articles

Do We Need Design Patterns?

Do We Need Design Patterns?

In the previous week I have been asked “do we really need design patterns
when we write code?”. Since one of the first things that I wrote in my blog
was a design patterns series you probably would think that I answered SURE!
or other absolute answer.
That isn’t the case.
The question was raised since I saw that a developer tried to enforce a
design pattern (abstract factory) that wasn’t needed in some place in the
code. What I really believe in is that design patterns are guidelines
of how to build better object oriented design but…
sometime it is being abused like every other aspect in programming.
You don’t need to enforce a pattern in code if what you only need is very
simple implementation.
Yes, reusability, scalability and other phrases that are connected to design
patterns
are very important but so does simplicity or other
object oriented design principals like S.O.L.I.D.

In conclusion, we need design patterns but there are other things to consider
when you develop an application. To write it in other words –
When the only tool you have is a hammer, it is tempting to treat everything as
if it were a nail
” - Abraham Maslow.

DotNetKicks Image

Comments

Rajesh said:

We need patterns and its good practice.Just do not know when and where to apply it.Patterns are not solutions for everything .. but rather most of the things.

# September 17, 2009 2:35 PM

DotNetBurner - Patterns said:

DotNetBurner - burning hot .net content

# September 18, 2009 11:20 PM

Jon said:

Design patterns can be abused by newbie-programmers that try to show their skills.

Interviewers that asks questions about that subject - make a progress to that direction.

# September 19, 2009 3:34 PM

bwtaylor said:

Do we need to use design patterns? No, if used correctly they can guide us through solving recurring problems in ways that are easy to identify and maintain.

That said, when we use design patterns, we need to use them **appropriately**. Jamming an abstract factory in where it makes no sense to do so does not mean that using patterns is bad, it means that using patterns badly is bad.

# September 19, 2009 10:17 PM

sq33G said:

Design patterns are tools. Programmers can use them to make their work better and more efficient (this includes maintenance). When the design pattern is making work worse and less efficient, it is no longer a helpful tool and should not be used.

# September 24, 2009 11:50 AM

?????? ???????? ???????? ???? ???????? ???????????? ?????????? said:

Pingback from  ?????? ???????? ???????? ???? ???????? ???????????? ??????????

# February 5, 2012 8:06 AM