In colloqial terms, "evil" can mean anything from michievous to "I really really don't like them" and I think the latter is close to Roland's meaning.
Maybe I'm missing something here... and granted, I can see the benefit of sharing a codebase across sites... but I've written anything I needed to redeploy using the webroot as the base of the CFC's path. I haven't seen anyone address this as viable/not viable as a solution.
I think the best idea is to allow a variable as part of a CFC type so that "#myapp#.lib.cfc.foo" is a valid type. If the directory isn't there, it throws an error as if it couldn't find a file.
Laterz,
J
On 5/3/05, Nando <[EMAIL PROTECTED]> wrote:
I haven't lived in America for 25 years, so i'm probably not up on the use
of the word "evil" in everyday speech. But in my very direct experience, for
those of us that are creating applications to be distributed on anything
"less" than a dedicated server, server-wide mappings tend to create bigger
problems than the ones they attempt to solve, and it's very possible you
might not see it coming.
On a larger scale, for all the reasons Roland lists, they limit your ability
to create a viable business with what needs to be a plug and play
application. I've got nearly 2000 instances of a mapping in our code base.
And the app isn't THAT big. Once you start relying on CFC's, mappings, if
you use them, are all over the place.
I would add to his list that whenever you are forced to search and replace
the mapping so you can install a separate instance on a server ... you make
it "twice" as difficult to maintain your codebase across installations with
bug fixes and improvements. That can get out of hand exponentially!
To expand our business, either we're going to have to modify our codebase
and move toward what Roland is doing, perhaps using a single directory for
all CFC's so i can use inheritance. Or wait until CFMX has application
specific mappings.
We had a provisional offer to include our app within another much larger
online service. They wanted it now. I backpedaled largely because of the
mapping issue, and the deal fizzled. It might have fizzled anyway if i had
gone for it, but i couldn't really take the first step forward.
Is that evil? Well, let's just say it was a little unfortunate.
--
---------------
-------------------------------------
Buy SQLSurveyor!
http://www.web-relevant.com/sqlsurveyor
Never make your developers open Enterprise Manager again. ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
