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)
Shannon, In some ways you are right, but for code reuse I still believe the custom tag is the way to go. Say you put the code in /webroot/myIncludes/myReusableCode.cfm. Someone working in /webroot/Application1/SubApp1/report would have to use either or if the /webroot is mapped correctly

Re: Which code reuse method?

2010-05-13 Thread Casey Dougall
With a custom tag, there is a tiny bit extra to > consider (scope issues are different, handling the lack of an end tag). > It's not that it's a big deal, I'm just wondering what the advantage would > be. In this case, the advantage may well be simply the need to demonstrate &

Re: Which code reuse method?

2010-05-13 Thread Shannon Rhodes
7;s a big deal, I'm just wondering what the advantage would be. In this case, the advantage may well be simply the need to demonstrate code reuse to other developers who may use includes inappropriately---that is a compelling case. If that is the case, I would recommend making it a cus

RE: Which code reuse method?

2010-05-11 Thread LRS Scout
over the place. A cfc does seem to be going overboard to me. I like the UDF Idea personally. -Original Message- From: Shannon Rhodes [mailto:shan...@rhodesedge.com] Sent: Tuesday, May 11, 2010 10:56 AM To: cf-talk Subject: Which code reuse method? I'm probably overthinking this,

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)
ubject: Re: Which code reuse method? +1 to making it a custom tag in the server's default custom tag directory. > Definitely a custom tag or a cfc seem like overkill. Custom tag is just that: a bit of code that can be called in a single tag, that's all. Nothing 'overkill&

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)
rocess 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). Also, I'm thinking > if I'm really going to approach this properly I need to request a mapping to > a folder ab

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

Which code reuse method?

2010-05-11 Thread Shannon Rhodes
rocess 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). Also, I'm thinking if I'm really going to approach this properly I need to request a mapping to a folder above the web root rather

Re: Code reuse ideas?

2005-12-02 Thread James Holmes
My favourite line from that doc: "Do not use client scope." I'm glad I'm not alone in avoiding it completely... On 12/2/05, Dawson, Michael <[EMAIL PROTECTED]> wrote: > We are working on a new intranet that will locate the CFCs, custom tags > and includes, outside the web root just for this purp

Re: Code reuse ideas?

2005-12-01 Thread John McKown
mac jordan wrote: >On 30/11/05, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > >>I know of a couple of in house frameworks that do just this. One for >>example uses a lot of different custom tags for its CMS and that CMS is >>used >>for 20+ sites. Instead of copying that pack of tags to each site

Re: Code reuse ideas?

2005-12-01 Thread Phill B
I don't know how I missed that page. Thanks Michael On 12/1/05, Dawson, Michael <[EMAIL PROTECTED]> wrote: > We are working on a new intranet that will locate the CFCs, custom tags > and includes, outside the web root just for this purpose. > > MACR's best-practice document shows a common director

RE: Code reuse ideas?

2005-12-01 Thread Dawson, Michael
ublic/coding_standards/structure.htm l M!ke -Original Message- From: Phill B [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 9:16 AM To: CF-Talk Subject: Re: Code reuse ideas? Sounds like this is the best thing to do. I'm pretty positive that I will have to abstract my code a littl

Re: Code reuse ideas?

2005-12-01 Thread Phill B
From: mac jordan [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 01, 2005 4:17 AM > To: CF-Talk > Subject: Re: Code reuse ideas? > > On 30/11/05, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > > > I know of a couple of in house frameworks that do just this. One for

RE: Code reuse ideas?

2005-12-01 Thread Russ
mac jordan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 4:17 AM To: CF-Talk Subject: Re: Code reuse ideas? On 30/11/05, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > I know of a couple of in house frameworks that do just this. One for > example uses a lot of different cu

Re: Code reuse ideas?

2005-12-01 Thread mac jordan
On 30/11/05, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > I know of a couple of in house frameworks that do just this. One for > example uses a lot of different custom tags for its CMS and that CMS is > used > for 20+ sites. Instead of copying that pack of tags to each site they all > point to a co

Re: Code reuse ideas?

2005-11-30 Thread Robert Munn
If you think about it, this is exactly what frameworks do. For instance, with Mach-II you map a directory to the Mach-II framework folder, and all of your Mach-II apps use that directory for the core files. The disadvantage is that your shared files are just that- shared. You need to make sure

Re: Code reuse ideas?

2005-11-30 Thread Phill B
Thanks Aaron. Did you notice any downside to this? Anything that you could share is helpful. On 11/30/05, Aaron Rouse <[EMAIL PROTECTED]> wrote: > I know of a couple of in house frameworks that do just this. One for > example uses a lot of different custom tags for its CMS and that CMS is used >

Re: Code reuse ideas?

2005-11-30 Thread Aaron Rouse
I know of a couple of in house frameworks that do just this. One for example uses a lot of different custom tags for its CMS and that CMS is used for 20+ sites. Instead of copying that pack of tags to each site they all point to a common spot that stores just one copy of them. That way when a up

Re: Code reuse ideas?

2005-11-30 Thread Phill B
Any one have any thoughts on this? Am I not make any sense? On 11/30/05, Phill B <[EMAIL PROTECTED]> wrote: > Hey every one, > > I have around 9 web sites that all use copies of an original set of > code. I have converted most of the code to use CFCs which has been a > big help. I'm still having a

Code reuse ideas?

2005-11-30 Thread Phill B
Hey every one, I have around 9 web sites that all use copies of an original set of code. I have converted most of the code to use CFCs which has been a big help. I'm still having a hard time with some of the other code that is used on all the sites. So, I was thinking of mapping a directory on th

Code Reuse

2003-07-21 Thread Don
>Code Reuse >-- How to make a reusable component to provide more >value to customers? > >Hope the topic is not OT. I'm not sure if Dr. Carma >McClure's claim that "software reuse is the best >answer to the decade-old software crisis" >is all that accur

Code Reuse

2003-07-20 Thread LI, Chunshen \(Don\)
Code Reuse -- How to make a reusable component to provide more value to customers? Hope the topic is not OT. I'm not sure if Dr. Carma McClure's claim that "software reuse is the best answer to the decade-old software crisis" is all that accurate. But I'm a firm believe