Re: CFC in application scope....or else?

2007-11-09 Thread Tom Chiverton
On Friday 09 Nov 2007, Joeri B wrote:
> I got it now, I can make OO objects/CFC's which can be easily re-used in
> another application, or other CFC's. So I write less CFC's...

And less fragile glue to hold them together too.
I wrote a brief comparison of where LightWire and ColdSpring differ here : 
http://rachaelandtom.info/node/1429 and Peter Bell chimed in in the comments 
too.

Which is best for you and/or your current project is another matter :-)

-- 
Tom Chiverton
Helping to revolutionarily e-enable viral markets
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293026
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC in application scope....or else?

2007-11-09 Thread Joeri B
Thanks for all the help. Meanwhile I played with LightWire to get a feel of 
true IoC. I used 2 cfc, and wired them together. Product CFC and a tax 
calculator CFC. Product CFC depended on tax calculator to exist. 

I got it now, I can make OO objects/CFC's which can be easily re-used in 
another application, or other CFC's. So I write less CFC's... 

 

 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293022
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFC in application scope....or else?

2007-11-09 Thread Rick Faircloth
> what you may read as being condescending may actually be a very
> sympathetic attempt to help.  

True... which is why my comments were gentle in nature.  (At least that
was my intent... :o)  I'm most often on the end of the one asking questions
instead of being able to provide answers, so I know what it's like to
receive answers in the form of questions that assume knowledge that
I don't have and, therefore, I can't even begin to understand the
significance of the question.

Questioning is a very good way to teach, but the answers always have to
be in reach of the learner.

Rick

> -Original Message-
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 09, 2007 3:58 AM
> To: CF-Talk
> Subject: Re: CFC in application scopeor else?
> 
> On Nov 8, 2007 7:14 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> > The problem is, I didn't see any answer or guidance in the question.
> > When someone has no clue about the broader implications of their
> > question, they can't understand the significance of the response
> > question.  It's just obfuscation.
> >
> > Providing some background concerning why the question is "fundamentally 
> > flawed"
> > would be more useful than asking questions that he's surely not going
> > to be able to answer.  If he could answer the question, he'd probably
> > know the answer to his original question, too.
> 
> Just my opinion, but sometimes it helps to understand the thought
> process of the person asking the question.  If you can understand why
> they were thinking about a particular solution, you can help them
> identify where their logic was flawed (it may be well before the
> actual issue that they were asking about).
> 
> Remember to take what you read in e-mail with a grain of salt, because
> what you may read as being condescending may actually be a very
> sympathetic attempt to help.  It's hard to discern in the written word
> tho :\
> 
> --
> Charlie Griefer
> 




~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293021
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC in application scope....or else?

2007-11-09 Thread Charlie Griefer
On Nov 8, 2007 7:14 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> The problem is, I didn't see any answer or guidance in the question.
> When someone has no clue about the broader implications of their
> question, they can't understand the significance of the response
> question.  It's just obfuscation.
>
> Providing some background concerning why the question is "fundamentally 
> flawed"
> would be more useful than asking questions that he's surely not going
> to be able to answer.  If he could answer the question, he'd probably
> know the answer to his original question, too.

Just my opinion, but sometimes it helps to understand the thought
process of the person asking the question.  If you can understand why
they were thinking about a particular solution, you can help them
identify where their logic was flawed (it may be well before the
actual issue that they were asking about).

Remember to take what you read in e-mail with a grain of salt, because
what you may read as being condescending may actually be a very
sympathetic attempt to help.  It's hard to discern in the written word
tho :\

-- 
Charlie Griefer


"...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed."

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293018
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFC in application scope....or else?

2007-11-08 Thread Rick Faircloth
The problem is, I didn't see any answer or guidance in the question.
When someone has no clue about the broader implications of their
question, they can't understand the significance of the response
question.  It's just obfuscation.

Providing some background concerning why the question is "fundamentally flawed"
would be more useful than asking questions that he's surely not going
to be able to answer.  If he could answer the question, he'd probably
know the answer to his original question, too.

Rick


> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 08, 2007 4:24 PM
> To: CF-Talk
> Subject: RE: CFC in application scopeor else?
> 
> > I'm sure he's just looking for observations/pros/cons about
> > the direction he's taking.  Like me, before swimming in
> > unknown waters, I check with the locals about possible sharks
> > in the waters.
> >
> > But everyone keeps answering his question with more questions.
> 
> Why do you think that is?
> 
> His question was, in my opinion, fundamentally flawed. There is no correct
> answer for it. I see those sorts of flawed binary questions all the time
> when asking about "best practices", and I think it's more useful to point
> out the error in the question than to attempt an answer.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293007
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFC in application scope....or else?

2007-11-08 Thread Dave Watts
> I'm sure he's just looking for observations/pros/cons about 
> the direction he's taking.  Like me, before swimming in 
> unknown waters, I check with the locals about possible sharks 
> in the waters.
> 
> But everyone keeps answering his question with more questions.

Why do you think that is?

His question was, in my opinion, fundamentally flawed. There is no correct
answer for it. I see those sorts of flawed binary questions all the time
when asking about "best practices", and I think it's more useful to point
out the error in the question than to attempt an answer.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information! 


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292985
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CFC in application scope....or else?

2007-11-08 Thread Rick Faircloth
I'm sure he's just looking for observations/pros/cons
about the direction he's taking.  Like me, before swimming
in unknown waters, I check with the locals about possible sharks
in the waters.

But everyone keeps answering his question with more questions.

Rick

> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 08, 2007 10:52 AM
> To: CF-Talk
> Subject: RE: CFC in application scopeor else?
> 
> > Which one (CFC in application scope OR framework) is the best
> > practice for a small application?
> 
> Why do you think that there is a single, universal best practice that
> answers this question?
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292968
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC in application scope....or else?

2007-11-08 Thread Brian Kotek
All Singletons are set up in the Application scope regardless of whether you
do it yourself or use a dependency injection framework. The benefits of the
DI frameworks have more to do with managing dependencies in your model.

All that said, I'd recommend looking at ColdSpring for about any size
project, since even small projects tend to grow over time and having the
foundation in place makes those future changes easier to deal with. The
overhead is minimal (since most of it is paid at application startup) and
the knowledge will be useful for all of your future projects.

On Nov 8, 2007 7:04 AM, Joeri B <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I've got a small application with some CFC's (no dependencies yet). At my
> work we cach/put our CFC's in the application scope. That works just fine,
> but I get the feeling it isn't right. It is really easy though. And the
> performance is superb.
>
> On the other side you've got frameworks like LightWire and ColdSpring. But
> it seems its a bit more complicate to use, and I don't know the real benefit
> for the use for them. If you don't have dependencies.
>
> Which one (CFC in application scope OR framework) is the best practice for
> a small application?
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292981
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CFC in application scope....or else?

2007-11-08 Thread Dave Watts
> Which one (CFC in application scope OR framework) is the best 
> practice for a small application? 

Why do you think that there is a single, universal best practice that
answers this question?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292946
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC in application scope....or else?

2007-11-08 Thread James Holmes
No issue, since by default ColdSpring caches objects in the
application scope anyway.

As for the original question, yes, there's less value in a dependency
injection framework if you don't have dependencies to inject.

On Nov 8, 2007 10:12 PM, Todd <[EMAIL PROTECTED]> wrote:
> What's wrong with putting objects in application scope?  As long as it's
> done right, then what's the issue?
>
> On Nov 8, 2007 7:04 AM, Joeri B < [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I've got a small application with some CFC's (no dependencies yet). At my
> > work we cach/put our CFC's in the application scope. That works just fine,
> > but I get the feeling it isn't right. It is really easy though. And the
> > performance is superb.
> >
> > On the other side you've got frameworks like LightWire and ColdSpring. But
> > it seems its a bit more complicate to use, and I don't know the real benefit
> > for the use for them. If you don't have dependencies.
> >
> > Which one (CFC in application scope OR framework) is the best practice for
> > a small application?


-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292929
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC in application scope....or else?

2007-11-08 Thread Todd
What's wrong with putting objects in application scope?  As long as it's
done right, then what's the issue?

On Nov 8, 2007 7:04 AM, Joeri B < [EMAIL PROTECTED]> wrote:

> Hi,
>
> I've got a small application with some CFC's (no dependencies yet). At my
> work we cach/put our CFC's in the application scope. That works just fine,
> but I get the feeling it isn't right. It is really easy though. And the
> performance is superb.
>
> On the other side you've got frameworks like LightWire and ColdSpring. But
> it seems its a bit more complicate to use, and I don't know the real benefit
> for the use for them. If you don't have dependencies.
>
> Which one (CFC in application scope OR framework) is the best practice for
> a small application?
>


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292926
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4