Samuel,

Agreed, the point is nTier concept of layered development. When you start
crossing layers, you minimize code reuse and that is not good. When you make
an exception to the rule of mixing layers... you tend to make another... and
it doesn't matter until it is an issue... and then the issue is all over the
place. (That's my take.)

John

----- Original Message -----
From: "Samuel Neff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 5:19 PM
Subject: RE: [CFCDev] Display in CFCs


>
> I don't think there's anything wrong with doing display in a CFC as long
as
> that's the whole point of the CFC.  Don't mix up database and business
logic
> code with display code.  As long as you stick to that, where you put your
> display code (a custom tag or a cfc) makes no difference.
>
> Sam
>
>
> ----------------------------------------------
> Blog:  http://www.rewindlife.com
> Chart: http://www.blinex.com/products/charting
> ----------------------------------------------
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Brad Howerter
> > Sent: Friday, August 29, 2003 5:06 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: [CFCDev] Display in CFCs
> >
> > I'd like to have a religious war on whether to use CFCs or
> > Custom Tags for
> > display.  I tried to start one on CF-Talk a few weeks ago,
> > but it didn't get
> > much of a response.  I've never seen this fleshed out very
> > well anywhere.
> >
> > What are the reasons for NOT having methods that return HTML
> > strings as a
> > result?  All I ever read is "It's stupid" or "It's bad".  To
> > me it makes
> > sense to do it in a CFC as opposed to a tag, because then you
> > have self
> > documenting methods (instead of poorly documented tags).  And
> > I don't see a
> > downside to it.  If I have, say, a person object, why
> > shouldn't it know how
> > to display itself?  It's probably not as clean a solution as
> > having xml and
> > xslt, but to me it seems better than having a custom tag
> > displaying the
> > html.
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the word '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 word '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]

Reply via email to