Skip to Content.
Sympa Menu

gang-of-4-patterns - Re: [gang-of-4-patterns] new to design patterns

gang-of-4-patterns AT lists.cs.illinois.edu

Subject: Design Patterns discussion

List archive

Re: [gang-of-4-patterns] new to design patterns


Chronological Thread 
  • From: "Justin Daubenmire" <jdaubenm AT yahoo.com>
  • To: "Bugra Cakir" <bugracakir AT gmail.com>
  • Cc: gang-of-4-patterns AT cs.uiuc.edu
  • Subject: Re: [gang-of-4-patterns] new to design patterns
  • Date: Wed, 14 May 2008 15:45:51 -0400
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/gang-of-4-patterns>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>

Hi Bugra,
 
Thank you for the feedback.
 
I just realized that this fell under the observer pattern.
 
The subject would be the calendar and the notes/reminders would be the observers.
 
You mentioned "triple". Is that typically a good indicator for the observer pattern?
 
Regards,
Justin
 
----- Original Message -----
From: Bugra Cakir
To: Justin Daubenmire
Cc: gang-of-4-patterns AT cs.uiuc.edu
Sent: Wednesday, May 14, 2008 3:37 PM
Subject: Re: [gang-of-4-patterns] new to design patterns

Hi Justin,
 
I am Bugra. For your problem, especially the calendar-date-note triple, observer may be appropriate.

On Wed, May 14, 2008 at 8:57 PM, Justin Daubenmire <jdaubenm AT yahoo.com> wrote:
Hi All,
 
I am new to design patterns but have been reading/studying them for around 2 months now. As a way to practice the design patterns, I decided to start a little c#.net project. It is a calendar that allows users to attach notes to dates on the calendar and also set reminders for notes. The application can support setting up multiple users so each user can have his/her own calendar, reminders, and notes. Users can attach multiple notes to a single date. Users can attach multiple reminders to a single date.
 
So the main objects are: calendar, user, notes, reminders and they are classes, not even any GUI objects yet.
 
 
As I sat down to program the application and select design patterns, I drew a blank! Do I use an abstract factory? composite pattern for notes/reminders? This is why I am here since I am sure others have experienced this just starting out too.
 
I have been programming for around 8 years and am familiar with object oriented programming, but design patterns are new to me so I thought it best to drill them into my mind via a small application.
 
With the brief description I just provided, can some of you please steer me to what design patterns I should use for the application?
 
What design pattern would be good to use for reminders/notes? The calendar? users?
 
Thanks for any suggestions or help!
 

Regards,
Justin

_______________________________________________
gang-of-4-patterns mailing list
gang-of-4-patterns AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/gang-of-4-patterns





Archive powered by MHonArc 2.6.16.

Top of Page