I don't think it's off track ... I have seen that i have to be very careful how i think about my model tho'
For instance, if we bring in a concept of a Page here, a Page can have either a Text blog post, a Photo blog post, or comments. Now what? Then of course, you might want to add a few more pods to your page, of course, for things like google ads or teasers. Now we have Pods on a Page. Now what? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Greg Stewart Sent: Wednesday, January 12, 2005 4:27 PM To: [email protected] Subject: Re: [CFCDev] When to Use Composition (Was: Newbie approach...) Not to throw a spanner in the works, but since we are talking about a blog, what if you wanted to extend it, to be say a photo Blog. Photo blogs can also have comments, so by the current reasoning one would a) create a new object that handles photos similar to the articles object, meanwhile duplicating some functionality or b) change the way article functions to encompass photos and articles? Where as c) move it up it the chain as was discussed and let a manager object deal with this and having a set photo, article and comment objects To me makes more sense in this context, with a and b I would see myself constantly having to re-work things or add new objects to deal with new content types that can have comments (hence duplicating functionality). Usual disclaimer about possibly being way of track applies here... ;) Cheers Greg ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
