Design Pattrens

  • Thread starter Thread starter TulasiKumar
  • Start date Start date
T

TulasiKumar

Hi all,
What is a DesignPattrens?
Why Design pattren cocpets are intorduced?
Using Csharp how should i develop designpattern concept?
Any one please explained me or any reference sites please provide me

I want to know the concept

regards,
Tulasi kumar
 
Think of them as common ways of performing specific tasks such as a Queue,
Stack or Linked List.. They are very usefull because they give you a "known
to work well" format for specific tasks.

Asking how to develop design patterns in C# is not really a good question to
ask because it depends on what pattern you are creating.
 
A design pattern is not a very complicated idea. It started when some
people with a lot of experience programming object-oriented systems
noticed that they were writing essentially the same code over and over
again in slightly different ways on different projects.

So, they came up with a general description of what this code did, and
then published the design (of the code) and examples. In other words,
they found a common problem, designed a good solution, gave the
solution a name, and published it.

The advantage of design patterns is that if you use them, you will be
solving certain well-known problems in a well-known way, so other
programmers reading your code will immediately recognize what you're
doing.

As well, the published patterns are solid and have worked out a lot of
common mistakes, so your code tends to be better as a result.

The famous book on design patterns is called Design Patterns, by Gamma,
Helm, Johnson and Vlissides, whom you will hear called "The Gang of
Four". You can see the book at Amazon, here:

http://www.amazon.com/gp/product/02...104-6310360-8494358?s=books&v=glance&n=283155
 
It is also worth noting that certain patterns demand particular language
features to implement correctly. For example, a pattern that solves a
problem using multiple-inheritance isn't going to work at all in C# and will
need a different solution. Hence Design Patterns are not entirely
language-independent and you need to be wary of this when looking at the
pattern, and potentially asking whether your language can support the
implementation of the pattern.
 
Back
Top