On 12/26/05, Ben Nadel <[EMAIL PROTECTED]> wrote: > Question about the factory pattern. From what I understand, the factory is > useful when creating various implementations of various object families. > However, when it comes to (my) web development, I find that I really only > have one family of objects.
There are two Factory patterns: Factory Method (what we're typically using in CF at the moment) and Abstract Factory which has multiple factory implementations and handles multiple "families" of objects. So when we say "Factory" we're just being a little sloppy with our terminology. If you want to see an Abstract Factory in all its glory (gory?), check out this final part of my old compiler-writing article: http://corfield.org/index.cfm/event/cplusplus.section/section/compile6 The abstract factory pattern is introduced (without naming it) about three-quarters through. I guess the article dates back to the late 90's... (Feel free to read the other five parts too if you're a masochist) -- Sean A Corfield -- http://corfield.org/ Got frameworks? "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
