I rather thought that case had already been made. If I have a "global"
redirectors directory at the highest level in my home application, any
circuit, no matter how deeply it might be buried, I can access those url_
files to get to where I want to go. Say you have an ABOUT circuit which
contains a GOALS display. Buried deep in several nested circuits, I have a
link that goes back to this goals directory. If I want GOALS to be
available in that fashion (rather than a top level navigation option that is
ever present) then a top-level redirector can be access and BAM! I am there.
Now, let's say that same GOALS link is propagated throughout my nested
circuits (say it is important to this site that its goals are constantly
being referenced/reiterated) and the ABOUT circuit that contains it moves
from the root to a nested circuit off the root. If I was NOT using the url_
reference, I would have to find all these link occurances and change
them...or change one url_ file and be done with it.
Doesn't that define reusability? Or at least, I would agree, portability?
What I don't see is how this is a stylistic choice. I would like to here
your argument for why you think it is...unless this diatribe changes that
position.
url_ files should not be considered a "must", but as was pointed out in
another message, some people hate the idea of that one extra file out there
that has tons of documentation and only a few lines of functional code. I
know people like that too and would agree that if you have the cards stacked
against you that you find a happy medium. I am of the philosophy that, in
general, every fuseaction I have in my index.cfm has only one case statement
and one line of code it issues. I do not usually have, for example, an
act_, qry_, dsp_ then a conditional clause for a url_ redirection in one
case statement.
But as my CF guru says, "it's all good" and if it ain't broke, don't fix it.
-----Original Message-----
From: John Quarto-vonTivadar [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 5:27 PM
To: Fusebox
Subject: Re: Why use url_files?
> hmmm...finally someone who has repeated what I said only about 10 hours
ago.
> Resusability...remember that point?
>
but Mike, what you described was stylistic justification, not reusability.
Can you provide an example where the reusability is supported by proof (ie
an example) rather than by assertion?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists