what is design patterns? which design patterns mostly used
in .net? How it is used with examples?
Answer Posted / srivatsa h.g
Guys ... i cant post all of the DP samples ..nonetheless u
get it over the internet but i can just brief u bout the
Design patterns
1. Design patterns are the general solutions to the design
problems.... (Though they dont give you the code)
2. Design patterns show how to build systems with good OO
design qualities
3. Design patterns provide a shared language that can
maximize the value of ur communication with other developers
The patterns that are commonly used in .NET
1.Facade -- business obj invoked by UI thru Facade
2.Composite -- Menu ctrl designed thru Composite pattern
3.Strategy -- lets the algorithm vary indep'ly from
clients that use it
4.Observer -- Error logging and tracing implemented
using this pattern
5.Abstract Factory -- solves the problem of accessing diff
databases
6.Singleton -- one instance
7.Proxy -- Used in cases of Just in Time Loading..
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
Give me example of chain of responsibility design pattern?
Is singleton an anti pattern?
2. Create your own definition of a system. Based on the “system” definitions a. Identify your viewpoint of shortcomings in the definitions. b. Provide rationale as to why you believe that your definition overcomes those shortcomings. c. From an historical perspective, identify three precedented systems that were replaced by unprecedented systems.
Why should we not use singleton pattern?
Is mvc a software design pattern?
What is the use of repository pattern?
Explain three types of components comprise an application design?
Where should we use singleton design pattern?
What is the gang of four design pattern?
What are the types of participants of the prototype design pattern you will get?
What is the difference between adapter and facade?
What are the disadvantages of singleton pattern?
What is synchronizer token pattern?
What are the most commonly used design patterns?
What are the categories in which the design patterns can be divided?