There's nothing "wrong" with two calls to CFMAIL...

In fact, there's still something to be said for letting one call be a
1-to-1 operation and the other call be a query-driven operation,
allowing CFMAIL to do each thing seperately as intended.

But Calvin has a point, in that it makes for 2 points to update, if need be.

It isn't really reasonable to debate the viability of either way
without discussing a slightly larger view of the system. What
surrounds this cfmail operation? Is there a unified process that
creates all the parameters that drives it? Can 2 calls to CFMAIL be
created with the same set of parameters being provided by other
sources?

Many of these design decisions are driven by context and specific
need... without a little more context, it's difficult to say which is
best.

If you had a SendCfmail class that took all of its parameters from the
caller, then issuing 2 calls successively could be done without worry
that things would change between them. In that case, separate
SendCfmail messages could be sent, one with a query object being
passed in and one with an individual recipient.

However, if your focus was on the "recipient" class, you could argue
that adding yourself to the recipients would be more in line with the
process's intent, and the addToQuery(me) call would be more
appropriate.

It entirely depends on the context, forces, and requirements of the situation.

YMMV, but that's why I've become a huge proponent of models and OO
lately... it answers those questions before you're too invested in one
method, only to find out that it doesn't work quite like you wanted
to.

Laterz,
J



-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://cfobjective.blogspot.com


On Fri, 14 Jan 2005 13:31:03 -0500, Tangorre, Michael
<[EMAIL PROTECTED]> wrote:
> > From: Calvin Ward [mailto:[EMAIL PROTECTED]
> 
> > The other solutions aren't as ideal for various reasons, in
> > my opinion.
> 
> What si wrong with the two cfmail tag calls? 1 call passing in the query
> and 1 call to the 1 recipient?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only 
good for you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190489
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to