?
Solved

Recommendation on some C# design patterns.

Posted on 2015-01-22
4
Medium Priority
?
172 Views
Last Modified: 2015-01-28
I have used many built in .NET Patterns, such as IEnumerable. I want to "Roll my own" design patterns so to speak. What would be a useful design pattern to learn? Also suppose you have to create a data access layer in C#. Is there a particular pattern that is used for a DAL? The application I am working on is a desktop application.
0
Comment
Question by:brgdotnet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 34

Assisted Solution

by:Mike Eghtebas
Mike Eghtebas earned 668 total points
ID: 40565750
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 668 total points
ID: 40565775
There are countless design patterns, so you may want to narrow your focus. Some common patterns are (in no particular order):

(Abstract) Factory
Decorator
Facade
Singleton (though some consider an anti-pattern)
Observer
Command
State
Adapter
Proxy
Model-View-Presenter (MVP)
Model-View-Controller (MVC)
0
 
LVL 2

Author Comment

by:brgdotnet
ID: 40565792
I know about all of the pattern names. Google can tell me that. I need to hear from an expert who has a lot of experience with design patterns.
0
 
LVL 23

Assisted Solution

by:Michael Fowler
Michael Fowler earned 664 total points
ID: 40565818
What sort patterns are you talking about as this subject is very broad. There are 23 patterns which are considered to be the foundation of all other design patterns and these are broken into three groups Creational, Structural, and Behavioral. Which ones to learn would be highly dependent on your goals.

Two I would recommend are the Iterator and Singleton patterns

If you are really interested in the subject I would recommend getting a copy of "Design Patterns: Elements of Reusable Object-Oriented Software".
http://en.wikipedia.org/wiki/Design_Patternshttp://en.wikipedia.org/wiki/Design_Patterns

and here is a site with C# examples of the foundation patterns
http://www.dofactory.com/net/design-patterns
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question