Link to home
Start Free TrialLog in
Avatar of Easwaran Paramasivam
Easwaran ParamasivamFlag for India

asked on

Have you used Design Pattern (C#) in your project?

One of my interview questions was 'Have you used Design Pattern (C#) in your project?'. Though I've used only singleton pattern so far in my project I was managed to explain that alone. I've read more articles to explain other patterns theoretically. But he wanted to explain the scenarios and patterns with code.

If you have used design pattern in your projects please do explain the scenario you used and please do provide your code. So that I could get better idea.

Thanks.
Avatar of TI2Heaven
TI2Heaven

Please check this nice guide.
I do not recommend this link but I am sending to you because I know for other questions you asked that you are interested in an example of Entity Framework with other design patterns.
Avatar of Easwaran Paramasivam

ASKER

Experts,

 I'm looking for practical usages of Design pattern in your project. So that I could know better.
SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks. Your points make sense. What I'm looking for is that where we do explicitly create/use design pattern. In which situation we use which pattern? In any of your projects if you implemented explicitly please do explain in detail. If sample code there, then that would be great.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks.
They are great answers Jaime, both of them!.
I would like to add some of my thinking about this topic.
You are not a greater programmer if you just follow these patterns, and ask you which one fits better in each particular case. I have readied I few books about software architecture (Gang-of-Four's is in my must read queue) and I don’t see this patterns as the perfect guide to make good programs a see this patterns as a way to question your programming style and a way to question the need of your favorite language structures (c#). So, Yes to study all design patterns but No to follow them as the bible.
Knowing about other language environment is also profitable because you will see different options taken in language design (C++, Java, Net Language, SQL language, JavaScript, SVG, …).
Design Patterns assume that a good general purpose language is enough to program anything. I am not agree with the previous sentence, to program the sprinkles of your back yard, general purpose language is not the language best suited in doing it.