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: "Peter Madziak" <peter.madziak AT gmail.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 16:21:57 -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>

In this context you might also want to check out Martin Fowler's Analysis Patterns. It's an Addison-Wesley book but he has a good deal of content related to it online as well:
http://martinfowler.com/articles.html#id21965
 
In particular you might be interested in:
http://martinfowler.com/apsupp/recurring.pdf
http://martinfowler.com/ap2/timeNarrative.html
Also, I can't resist raising a note of caution: are you sure you want to be building this kind of application yourself? If it's for yourself that's one thing, but if it's for a paying customer then it would likely be much more effective to integrate with some existing calendaring system. For instance, Microsoft Exchange has many integration points; heck, you could even put together a fancy new Web 2.0 Mashup by programming against Google Calendar which is exposed as a (somewhat RESTful) service based on their GData extension of Atom. Just something to consider...
 
Peter
On Wed, May 14, 2008 at 3:37 PM, Bugra Cakir <bugracakir AT gmail.com> wrote:
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



_______________________________________________
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