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: <gang-of-4-patterns AT cs.uiuc.edu>, "Ray Tayek" <rtayek AT ca.rr.com>
  • Subject: Re: [gang-of-4-patterns] new to design patterns
  • Date: Wed, 14 May 2008 19:31:45 -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>

Thanks Ray for the input and thoughts.

I think the calendar and notes/reminders fall under the observer pattern.

To all: my other question is the user object. The user object will have a one to one relationship with the calendar object. I am wondering if simply making the user object a singleton would be a good fit for this practise application?

Is there another pattern that we could use to fit the user object into the observer pattern for the calendar/notes/reminders?

Could the user object be a subject and the calendar be an observer that could subscribe to the user object?

Are there any patterns common to a one to one relationship between objects?

Any advice/feedback welcomed!

Regards,
Justin
----- Original Message ----- From: "Ray Tayek" <rtayek AT ca.rr.com>
To:
<gang-of-4-patterns AT cs.uiuc.edu>
Sent: Wednesday, May 14, 2008 5:22 PM
Subject: Re: [gang-of-4-patterns] new to design patterns


At 10:57 AM 5/14/2008, you wrote:
... 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!

don't worry, you may not need any design patterns. wait for a design
problem to show up.

...programming, but design patterns are new to me so ..., 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?

none come to mind immediately. do some class design for a while.
write some code. wait until you have some design problem to solve.

thanks


---
vice-chair http://ocjug.org/


_______________________________________________
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