Besides the code being reusable, is there a specific reason why I
should use a CFC rather then a CFM file?
I mean, from what I understand about CFC's, they use the same
processing power as a file cfincluded. Am I incorrect in this? Is
there a compelling reason to use CFCs instead of normal code?
Just a quick thought: If, for example, you are building reusable,
singleton components (sorry for the OO buzzwords, but it is descriptive
terminology), then you can load those CFCs into Application scope and have
them exist in memory only once but still be used across all requests in the
Gotcha. Thanks. :)
On Tue, Sep 8, 2009 at 7:49 AM, Jason Fisherja...@wanax.com wrote:
Just a quick thought: If, for example, you are building reusable,
singleton components (sorry for the OO buzzwords, but it is descriptive
terminology), then you can load those CFCs into Application scope
it. :)
~Brad
Original Message
Subject: CFC's.. Why use them?
From: Phillip Vector vec...@mostdeadlygame.com
Date: Tue, September 08, 2009 9:39 am
To: cf-talk cf-talk@houseoffusion.com
Besides the code being reusable, is there a specific reason why I
should use a CFC
like starting your microwave on fire to cook your supper over it
That is a wonderfully expressive metaphor (and accurate to the example,
too!)
~|
Want to reach the ColdFusion community with something they want? Let them
Just a quick thought: If, for example, you are building reusable,
singleton components (sorry for the OO buzzwords, but it is descriptive
terminology), then you can load those CFCs into Application scope and have
them exist in memory only once but still be used across all requests in the
Original Message
Subject: CFC's.. Why use them?
From: Phillip Vector vec...@mostdeadlygame.com
Date: Tue, September 08, 2009 9:39 am
To: cf-talk cf-talk@houseoffusion.com
Besides the code being reusable, is there a specific reason why I
should use a CFC rather then a CFM
Peter,
I understand the singleton pattern. It's lovely, on a cloudy day or sipping
some tea or whatever, but in CF, don't you think that implementing the true
singleton pattern is overkill and generally unnecessary? Consider our lack
of true constructors, the stateless nature of the web, and
Thanks for the replies guys. I have currently the task of converting
over a straight forward web app to fusebox. The app already has allot
of repeat code and this isn't something that is going to be easy at
all.
One thing I have going on is that I have LOTS of cfcs. I mean, LOTS of
them (over
Hi Nathan,
Yes, this bit:
Or, are you just saying we throw the word around like candy at a parade and
should stop before we hit someone in the eye?
Though this one is not just the CF community - plenty of people all round don't
really know what Singletons (and even design patterns in general)
[mailto:vec...@mostdeadlygame.com]
Sent: Tuesday, September 08, 2009 2:35 PM
To: cf-talk
Subject: Re: CFC's.. Why use them?
Thanks for the replies guys. I have currently the task of converting
over a straight forward web app to fusebox. The app already has allot
of repeat code and this isn't something
On Tue, Sep 8, 2009 at 1:38 PM, Peter Boughtonbought...@gmail.com wrote:
Though this one is not just the CF community - plenty of people all round
don't really know what Singletons (and even design patterns in general)
actually are.
Remember that Singleton is a DESIGN pattern. The
I think that one of the best uses of CFC's (and UDFs and custom tags) is to
abstract or hide a lot of code behind simple function calls or custom
tags so you can make changes in one place and have of in effect globally. Or
if you abstract part of your code, like the database layer, you can make
On Tue, Sep 8, 2009 at 4:39 PM, Scott Stewart sstwebwo...@bellsouth.netwrote:
Phillip,
One of the things that CFC's can do is encapsulate repetitive code, you can
write a function one time and call it multiple times.
I personally like knowing what I actually send to a cfc. With an
Remember that Singleton is a DESIGN pattern. The complexities we see
in much of the published literature are based on Java's inability to
cleanly implement a secure Singleton design because it doesn't have a
global scope and any real sense of application startup. Don't mix
design and
15 matches
Mail list logo