RE: [CFCDev] Process for Updating Database Records

2004-11-18 Thread Kerry
? And the only way (other than doing a massive find/replace) to shift the entire app to another DB easily is by modifying the userDAO_MSSQL.cfc so that it no longer is MSSQL? Kerry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joe Rinehart Sent: 18 November 2004 02

RE: [CFCDev] Autoreply: [PERIODIC cfcdev DIGEST POSTING]

2004-11-18 Thread Kerry
how about blocking all autoreplies? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dawson, Michael Sent: 18 November 2004 14:38 To: [EMAIL PROTECTED] Subject: RE: [CFCDev] Autoreply: [PERIODIC cfcdev DIGEST POSTING] Ummm. Ray, is it time to block this

RE: AW: AW: [CFCDev] Validation

2004-11-23 Thread Kerry
instance.common.string.split() If you are using inheritance, (fatal logic error: why would a vehicle have a split() function?) then I presume you would just call split(), so if a future CF version has a split() function, you are in trouble Kerry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [CFCDev] Will this cftransaction work?

2004-11-23 Thread Kerry
heres what i use: cfset errmsg=""cfset docommit = truecftransaction action=""cftry !--- do your queries/cfc calls here --- cfcatchcfset docommit = falsecfset errmsg = "#cfcatch.message#,#cfcatch.detail#"/cfcatch/cftrycfif docommitcftransaction action=""/cfelsecftransaction

RE: [CFCDev] Check for Empty Strings in Required String Arguments

2004-12-03 Thread Kerry
Personally, I would return an empty array, with one empty element, the rationale being: if you passed it: 12345qwerty you would get back exactly what you passed in, but as the first element in an array. so if you passed it: [empty string] shouldnt the behaviour be the same? (not that cold

RE: [CFCDev] Composition and SQL

2005-01-27 Thread Kerry
When we pass data into a function, we pass in each individual field instead of an object. This has the benefit of allowing most of our functions to be exposed directly as webservices with no modification whatsoever, and without worrying about compatibility with our target platforms due to strange

RE: [CFCDev] Composition and SQL

2005-01-27 Thread Kerry
To: cfcdev@cfczone.org Subject: Re: [CFCDev] Composition and SQL On Thu, 27 Jan 2005 14:33:52 -, Kerry [EMAIL PROTECTED] wrote: But why make the rest of us programmers figure out your proprietary objArgs technique? in this particular case, my boss would be very happy if i made the app

RE: [CFCDev] Composition and SQL

2005-01-27 Thread Kerry
I could see the genericDAO scheme working if there was an argument on the create method that required an object that implemented a fictitious interface dictating that that it only took objects with a getConfig() method. okay im not really getting it. the 2 scenarios are: 1. function has

RE: [CFCDev] Using application.cfc to modify the request stream

2005-02-23 Thread Kerry
why use them at all? in fact why use the recordset cursor at all? from(i=1; i lte myquery.recordcount;i=i+1){ writeoutput(myquery[myfield][i]br); } this way a single query in memory can be used by lots of different code... -Original Message- From: [EMAIL PROTECTED]

RE: [CFCDev] Using application.cfc to modify the request stream

2005-02-23 Thread Kerry
the hidden features are actually java? so it doesnt matter if CF changes, only if the java implementation changes? raising the possibility that the undocumented features could be more stable than the documented ones? :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: [CFCDev] 'unsubscribe cfcdev'

2005-02-23 Thread Kerry
maybe try without any apostrophes -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED]Sent: 23 February 2005 15:49To: cfcdev@cfczone.orgSubject: [CFCDev] 'unsubscribe cfcdev' 'unsubscribe cfcdev'

RE: Re[2]: [CFCDev] query object (was: Using application.cfc to modify the request stream)

2005-02-23 Thread Kerry
shouldnt this: cf_data_list query=myQuery cf_column headerText=Namecfoutput#myQuery.name#/cfoutput/cf_column cf_column headerText=Datecfoutput#myQuery.date#/cfoutput/cf_column /cf_data_list be this: cf_data_list query=myQuery cf_column headerText=Name

RE: [CFCDev] query object CFC Beta

2005-02-25 Thread Kerry
DataRowCollection.GetEnumerator() ah, .NET, the exceedingly long names for classes, most of which are buried deep within other classes with exceedingly long names... i should remember these things when i get annoyed with CF -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [CFCDev] get Methods - HELP !

2005-04-04 Thread Kerry
I think there was a bug that meant cfcs had access the the .cfms variables scope, but it was fixed in 6.1? or maybe in the updater -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Merrill Sent: 04 April 2005 15:07 To: CFCDev@cfczone.org Subject: RE:

RE: [CFCDev] Object helpers, overuse of inheritance?

2005-04-15 Thread Kerry
you really don't want to create a deep tree Just wondering how deep the tree would have to be before you would class it as too deep? create a maintenance nightmare I dont follow, how does it create a maintenance nightmare? e.g. if I fix a bug/improve something in my generic persistence.cfc, then

RE: [CFCDev] cflocation in cfc

2005-04-15 Thread Kerry
Its extremely hard to determine which method call threw the error, unless your framework bubble up errors well Just a thought, cfcatch does a good job of providing a 'breadcrumb'... you could have a generic throw function? cffunction name=tracethrow cfargument name=message

RE: [CFCDev] Arcos framework

2005-04-22 Thread Kerry
Looks interesting, seems well thought out and tight. One thing, could you make it work sans the CF /arcos mapping? I prefer to have all my applications running independently. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tan Panza Serge Sent: 21 April 2005

RE: [CFCDev] To genericize parameter passing or not

2005-04-22 Thread Kerry
well, the way I do it (which I think is also generally frowned upon) is that I have a generic DAO cfc which expects an object that has a method which returns the fields of that object, and a structure of parameters. It loops over the fields returned and any that it also finds in the structure of

RE: [CFCDev] To genericize parameter passing or not

2005-04-25 Thread Kerry
Where does the info about the object's fields come from? Is it returned by a method of each persistable object? Yep. The method returns the fields array, which can be populated by hardcoding the properties in the cfc, which I have done for the static, core elements of the framework, or can come

RE: [CFCDev] Generic Beans (was: LTOs (was: Form Validation))

2005-05-11 Thread Kerry
Just to chip in my thoughts at this late stage of the thread I am using akind of generic bean method: Each of my objects holds an array of field definitions, and to get a bean, you ask the object for a bean. the getBean() function only accepts one argument, a struct. The object then

RE: [CFCDev] global cfc's

2005-05-11 Thread Kerry
I have something like this, but I avoid server wide components for various reasons (I like my sites to be modular, independent,portable), although many people would disagree with this approach. So, I have a component called common, which performs a cfdirectory on a subdirectory called

RE: [CFCDev] global cfc's

2005-05-11 Thread Kerry
Does it make sense to create a Component that holds all the functions Personally, I would break them up into sub components. i.e. common.string common.math common.date -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ali AwanSent: 11 May

RE: [CFCDev] Singleton / Factory request

2005-05-12 Thread Kerry
Any comments appreciated. Why does the factory manager go back out of itself to application scope, when it itself is already a singleton in application scope? You could change to: !--- Instantiate ComponentManager --- cfif not StructKeyExists(Application, 'ComponentFactoryManager')

RE: SPAM-LOW: RE: [CFCDev] Singleton / Factory request

2005-05-13 Thread Kerry
but, if you are creating the object in app scope, and x number of requests cause the appstart code to run, then each subsequent request will overwrite the last one, so there will still only be one instance of the object? in saying that, I would do the lock because its nice and tidy.

RE: SPAM-LOW: RE: [CFCDev] Singleton / Factory request

2005-05-13 Thread Kerry
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nando Sent: 13 May 2005 10:53 To: CFCDev@cfczone.org Subject: RE: SPAM-LOW: RE: [CFCDev] Singleton / Factory request Kerry, i don't think there's much of any reason to create an object and place it in application scope unless you make

RE: [CFCDev] very cool tool www.cfcpowertools.com

2005-05-13 Thread Kerry
that a marketing spiel or what? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Byron Sent: 13 May 2005 16:00 To: CFCDev@cfczone.org Subject: [CFCDev] very cool tool www.cfcpowertools.com Hi, Ya, I lurk on this list too; there are lots of us who do. I've

RE: [CFCDev] CFC wish-list

2005-05-26 Thread Kerry
CFML doesn't have pre- and post-increment operators, either. Should it YES! That would be great, no more typing fugly i=i+1, just i++. beautiful. that would be beautiful. How about pointers? it does?, references to objects and structs are pointers? what would be wrong with being able to set a

RE: [CFCDev] CFC wish-list

2005-05-26 Thread Kerry
cflib.org has functions for this ? had a look, couldnt find one named ++ that didnt require brackets and could be called from either side of the variable -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of RADEMAKERS Tanguy Sent: 26 May 2005 15:49 To:

RE: [CFCDev] CFC wish-list

2005-05-26 Thread Kerry
or not: The IIf function is a shortcut for the following construct: cfif condition cfset result = Evaluate(string_expression1) cfelse cfset result = Evaluate(string_expression2) /cfif -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joe Rinehart

RE: [CFCDev] CFC wish-list

2005-05-26 Thread Kerry
All expressions a, b and c are evaluated... ...in an iif() statement even worse! silly me, cutting and pasting from the macromedia reference like that. http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct117.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [CFCDev] Transfer object implementation

2005-06-01 Thread Kerry
you might want to lookup thread(s): [CFCDev] Generic Beans (was: LTOs (was: Form Validation)) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Merrill Sent: 01 June 2005 16:10 To: CFCDev@cfczone.org Subject: [CFCDev] Transfer object implementation In

RE: [CFCDev] [OT] Wierd Problem Need Help: Query- Struct - argumentCollection

2005-06-16 Thread Kerry
I think it might just be that its an html email containing JS. Is there an option on the list to receive all emails as plain text? -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Ung, SengSent: 15 June 2005 21:34To: CFCDev@cfczone.orgSubject:

RE: [CFCDev] Redundant Evaluate - even here?

2005-06-29 Thread Kerry
But shouldnt it really be: application.cfcPlayerHandler.getById(variables.item.getPlayerUuid(y)).getName() -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of John SamsonSent: 29 June 2005 17:55To: cfcdev@cfczone.orgSubject: [CFCDev] Redundant

RE: [CFCDev] Redundant Evaluate - even here?

2005-06-29 Thread Kerry
perhaps: cfvinvoke component="variables.item" method="getPlayer#y#Uuid" returnvariable="theuuid" application.cfcPlayerHandler.getById(theuuid).getName() -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of John SamsonSent: 29 June 2005 17:55To:

RE: [CFCDev] CFC Functions Escaping ' using methods

2005-07-05 Thread Kerry
http://www.cflib.org/udf.cfm?ID=1219 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magnus Wege Sent: 05 July 2005 09:20 To: CFCDev@cfczone.org Subject: [CFCDev] CFC Functions Escaping ' using methods Hello, I have a question concerning the escaping of

RE: [CFCDev] gateway CFCs

2005-07-13 Thread Kerry
The way I (possibly incorrectly) use the term gateway in cfcs is really only for providing access to external applications, e.g. Flash/Flex apps, other websites. I also code the Flash/Flex app to have its own gateway component, which then talks to my gateway cfc, so the apps only talk to

RE: [CFCDev] Working with CFC's in a development version of a live site

2005-08-25 Thread Kerry
I'll second what dave said about developing locally, but you could achieve this easily by having 2 websites running on the server? www.yoursite.com points to c:\inetpub\wwwroot\yoursite\ dev.yoursite.com points to c:\inetpub\wwwroot\devsite\ Then they both have seperate copies of

RE: [CFCDev] When to use the THIS scope for a ColdFusion Component?

2005-08-30 Thread Kerry
So you'd deprecate that method, and then add getGasLeftGallons() and getGasLeftLitres() or something I know its only an example off the top of your head, but this does change the interface! So I can see why John would question the benefit. Heres my take on the example - off the top of my head

RE: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component?

2005-09-09 Thread Kerry
My Answer: gatewayFactory.cfc function init(dsn,someargs){ variables.instance.dsn = arguments.dsn; variables.instance.something = arguments.somethingelse; } function load(gatewayname){ return createobject(component,arguments.gatewayname).init(variables.instance.dsn) ; }

RE: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component?

2005-09-09 Thread Kerry
through -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Nando Sent: 09 September 2005 09:30 To: CFCDev@cfczone.org Subject: RE: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component? Kerry, Hmmm, an all

RE: [CFCDev] variables.my (Was: Method parameters vs method names)

2005-09-09 Thread Kerry
not sure why barney has used my, but I will quite often break up the variables into diff structs, just because it seems tidy to me. e.g. variables.cfg variables.obj variables.qry so i might even have: variables.cfg.db.dsn variables.cfg.db.dbtype -Original Message- From: [EMAIL

RE: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component?

2005-09-09 Thread Kerry
: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component? Kerry: I credit this approach by abstracting the dsn setting to a gateway cfc. My goal is to make the interface as simple and as possible for the caller to retrieve records following the idea

RE: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component?

2005-09-09 Thread Kerry
parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component? Kerry: I credit this approach by abstracting the dsn setting to a gateway cfc. My goal is to make the interface as simple and as possible for the caller to retrieve records following the idea that other programmers

RE: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component?

2005-09-09 Thread Kerry
] [mailto:[EMAIL PROTECTED] Behalf Of Jason Davey Sent: 09 September 2005 16:52 To: CFCDev@cfczone.org Subject: RE: [CFCDev] Method parameters vs method names WAS: When to use the THIS scope for a ColdFusion Component? Kerry: I see your approach more clearly. I like the singleton instance idea via

RE: [CFCDev] Factories and mappings

2005-09-12 Thread Kerry
Nando: So to have more than one instance of an app on a server puts you through some gymnastics. Either you have to search and replace the mapping name in your CFC's Or not rely on any mappings! Going down the directory tree works, it's just going up where you run into problems. True, but I

RE: [CFCDev] object compostion question

2005-09-15 Thread Kerry
I would _try_ to have a uniform approach so that a P object is always a P object, not P.1 and P.2 As long as the logic is has a property that might not be used instead of might have a property that will be used, then I would say you dont have a problem. -Original Message- From: [EMAIL

RE: [CFCDev] Default for Dates in a Transfer object

2005-09-21 Thread Kerry
:32 PM To: CFCDev@cfczone.org Subject: Re: [CFCDev] Default for Dates in a Transfer object Kerry, You would define you're own rule for what a NULL is for that type since you're creating the component. If a zero-length string is a null to you thens ure isNull would return true. if the rule

RE: [CFCDev] inheritance advice

2005-10-13 Thread Kerry
at first glance, it would seem to me that they are all content providers, so rather than inherit from page, I would make everything inherit from contentprovider.cfc -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of PaulSent: 13 October 2005

RE: [CFCDev] Inside the CFC: use Getter/Setter or Instance Scope

2005-10-14 Thread Kerry
This isnt a perfect OO implementation because it is completely untyped, but I have essentially generic beans that only have 3 functions: init - accepts a list of field names, and uses them to create a struct in the variables scope setValues - accepts a struct or query, and looks for the fields

RE: [CFCDev] Inside the CFC: use Getter/Setter or Instance Scope

2005-10-14 Thread Kerry
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter J. Farrell Sent: 14 October 2005 09:30 To: CFCDev@cfczone.org Subject: Re: [CFCDev] Inside the CFC: use Getter/Setter or Instance Scope Kerry wrote: This isnt a perfect OO implementation because it is completely untyped, but I have

RE: [CFCDev] Race Conditions when scoped in the Application variable

2005-10-27 Thread Kerry
cfset Application.userFactory = CreateObject(component,com.framework.user) / cfset Application.userFactory().AddUser(UserObject) / cfset Application.userFactory().DeleteUSer(UserObject) / bit confused by this code. 1) userFactory is not a function. 2) why is the factory performing

RE: [CFCDev] Race Conditions when scoped in the Application variable

2005-10-27 Thread Kerry
Kerry, First of all I type this in a bit of a hurry, so yeah it userFactory is not a function. Secondly as I described the object is a user object that will be held in memory so the scope form has nothing to do with this scenario so why give that to me as an example? cfset

RE: [CFCDev] Race Conditions when scoped in the Applicationvariable

2005-10-27 Thread Kerry
why is variables.oUser adding and deleting users well, right or wrong, I dont see why anything that interfaces with the object even needs to know about the concept of a DAO. So, all the code that is referencing oUser needs to know is to ask the factory for an object, and then call the functions

RE: [CFCDev] Race Conditions when scoped in theApplicationvariable

2005-10-27 Thread Kerry
It's very relevant to the outside world I respectfully disagree. You think the interface layer should know about persistence? if you handed me a user object, ... I would not expect it to be able to create, delete, or persist *other* user objects Your UserService would have methods like