RE: Which code reuse method?

2010-05-13 Thread DURETTE, STEVEN J (ATTASIAIT)
I think components still make the most reusable choice for things like this. I throw all my utility type functions into one cfc and call the correct function according to what is required, even if no input is required it still has the desired affect of doing xyz. These don't change often so I nor

RE: Which code reuse method?

2010-05-13 Thread DURETTE, STEVEN J (ATTASIAIT)
r the administrators, that's just a few characters typed into a field in the CF Administrator. Very simple. Steve -Original Message- From: Shannon Rhodes [mailto:shan...@rhodesedge.com] Sent: Thursday, May 13, 2010 10:54 AM To: cf-talk Subject: Re: Which code reuse method? I somewha

Re: Which code reuse method?

2010-05-13 Thread Casey Dougall
On Thu, May 13, 2010 at 10:54 AM, Shannon Rhodes wrote: > > Custom tag is just that: a bit of code that can be called in a > single tag, > that's all. Nothing 'overkill' about it to implement for a simple > computation. environment="development" /> seems fairly straightforward. > > I somewhat

Re: Which code reuse method?

2010-05-13 Thread Shannon Rhodes
Custom tag is just that: a bit of code that can be called in a single tag, that's all. Nothing 'overkill' about it to implement for a simple computation. seems fairly straightforward. I somewhat disagree. The easiest way to deal with a straightforward code snippet that takes no input par

RE: Which code reuse method?

2010-05-11 Thread LRS Scout
The two I would look at and use as it makes sense would be either to create it as a custom tag someplace everyone can get to it (cfmodule calls work too here) or make it as an application scoped udf that gets included onapplicationstart. We have a ton of udfs that are included once and used al ov

Re: Which code reuse method?

2010-05-11 Thread Shannon Rhodes
Great tips, thanks all! ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/messag

RE: Which code reuse method?

2010-05-11 Thread DURETTE, STEVEN J (ATTASIAIT)
#x27; about it to implement for a simple computation. seems fairly straightforward. From: "Gerald Guido" Sent: Tuesday, May 11, 2010 11:18 AM To: "cf-talk" Subject: Re: Which code reuse method? >>However, my secondary co

Re: Which code reuse method?

2010-05-11 Thread Jason Fisher
r a simple computation. seems fairly straightforward. From: "Gerald Guido" Sent: Tuesday, May 11, 2010 11:18 AM To: "cf-talk" Subject: Re: Which code reuse method? >>However, my secondary concern is that we do not have a process f

Re: Which code reuse method?

2010-05-11 Thread Cutter (ColdFusion)
We set a variable in our onApplicationStart() method that looks at the server and defines an Application level variable for the server environment (which we'll move to the Server scope once we transition to CF9). Steve "Cutter" Blades Adobe Community Professional - ColdFusion Adobe Certified P

Re: Which code reuse method?

2010-05-11 Thread Gerald Guido
>>However, my secondary concern is that we do not have a process for sharing code in-house so I could see whatever method I choose turning into a sort of default method of code reuse (even when not appropriate). If that is the case, I would recommend making it a custom tag and sticking it in the