would a composite design pattern be useful for group membership?
Posted
by
changokun
on Programmers
See other posts from Programmers
or by changokun
Published on 2012-11-12T00:31:17Z
Indexed on
2012/11/12
5:14 UTC
Read the original article
Hit count: 276
I'm trying to think about the best way to handle group memberships on a website. People sign up and select checkboxes in a list of interests. Every week we send out interest-themed emails to those members that indicated that interest.
however i store the information in the database, while i am working with the lists and generating lists of email addresses or manipulating group memberships, the composite design pattern looked interesting.
it would be easy to populate the group, then do some aggregating functions that say... generate the list of email addresses based on the interests.
but i'm not sure i'm seeing any other advantages. i do need something scalable, and flexible.
thoughts?
© Programmers or respective owner