Amen Nando, amen! I used a couple different books to get my implementation. Fowler is good but we can't take it or any other books which are mainly based on java word for word. ColdFusion circumvents a lot of what the patterns are put in place to do. These are the discussions that I get into a lot with the other programmers here. There is a discussion of how object to make ColdFusion there are goods and bads, it seems that there are benefits but we need to know how not to take it too far and reduce the rapid development benefits in ColdFusion.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nando Sent: Thursday, September 15, 2005 3:33 PM To: [email protected] Subject: RE: [CFCDev] Table joins DAOs And Martin Fowler's definition isn't doing anything for me. :) The point that i'm trying to make is that i've found it makes sense to me to differentiate between the 2 because they tend to occupy different functional areas in the model / application. Why load a large dao with lots of functions for a front end view when all i need is a simple select statement? More lightweight does a lot for me. For instance, hopefully it helps to keep me from bringing another server online and needing an enterprise version of CFMX7 to handle the load balancing. Maybe that doesn't make sense to Martin, but apparently he hasn't worked on the same applications that i have. ;) > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Patrick McElhaney > Sent: Thursday, September 15, 2005 10:12 PM > To: [email protected] > Subject: Re: [CFCDev] Table joins DAOs > > > On 9/15/05, Nando <[EMAIL PROTECTED]> wrote: > > Here's how i differentiate them. DAO's work with corresponding BO's and > > forms to modify and create and delete stuff. Gateways are more > lightweight. > > They are generally for returning queries to the display, and occupy a > > different place/function in your model. JOIN away in your > Gateways, whatever > > you need to create reports / display information. > > "More lightweight" isn't doing anything for me. :) > > A gateway is "an object that encapsulates access external system or > resource."[1] A gateway is basically an API for that "external system > or resource," i.e. the database. It doesn't know anything about your > object model. > > [1] Patterns of Enterprise Architecture, by Martin Fowler, et. al. > > > -- > Patrick McElhaney > 704.560.9117 > http://pmcelhaney.weblogs.us > > > ---------------------------------------------------------- > 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). > > CFCDev is supported by New Atlanta, makers of BlueDragon > http://www.newatlanta.com/products/bluedragon/index.cfm > > 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' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm 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' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
