Re: try-catch was RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-16 Thread S . Isaac Dealey
On Tuesday, Oct 15, 2002, at 17:26 US/Pacific, S. Isaac Dealey wrote: Isaac the Butcher of Fusion ... :) Careful, that might stick! :) At least then I'd be assured a reputation. :) [horrific factorial implemented with try/catch snipped] Of course not... For starters, there are existing

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-16 Thread Kola Oyedeji
Subject: RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?) The try isn't too expensive, but the catch can be. However, running a bunch of trys within a loop can also degrade performance. The catch generates significant overhead when an exception is thrown because

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-16 Thread S . Isaac Dealey
October 2002 02:08 To: CF-Talk Subject: Re: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?) try/catch is a pretty heavy operation - you should only use it for (unexpected) error cases, not normal operation

Re: try-catch was RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-16 Thread Sean A Corfield
On Wednesday, Oct 16, 2002, at 06:13 US/Pacific, S. Isaac Dealey wrote: [horrific factorial implemented with try/catch snipped] Yech... I pitty your server. :P My Mac laptop, you mean? :) In answer to Kola's question about try-catch in CF5: try-catch generally introduces an overhead in every

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread Kola Oyedeji
Hi Sean, have I missed something, are you saying try and catch add a significant performance overhead? Thanks Kola -Original Message- From: Sean A Corfield [mailto:[EMAIL PROTECTED]] Sent: 15 October 2002 02:08 To: CF-Talk Subject: Re: switch-case was RE: BlueDragon (was RE: How

Re: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread S . Isaac Dealey
On Monday, Oct 14, 2002, at 17:13 US/Pacific, S. Isaac Dealey wrote: There is another way to simulate variables or ranges in a case statement with a cftry and cfcatch blocks... try/catch is a pretty heavy operation - you should only use it for (unexpected) error cases, not normal

Re: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread S . Isaac Dealey
damn keyboard shortcuts... I've used try catch for a number of non-error handling items .. properly implemented, it works pretty well. Or at least it has for me. Have you timed it? (I won't even start on the stylistic implications of this!) I guess I probably should explicitely time test

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread Mike Chambers
for flow control. hope that helps... mike chambers [EMAIL PROTECTED] -Original Message- From: Kola Oyedeji [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 15, 2002 4:33 AM To: CF-Talk Subject: RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?) Hi

RE: try-catch was RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread S . Isaac Dealey
: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?) try/catch is a pretty heavy operation - you should only use it for (unexpected) error cases, not normal operation... ~| Archives: http

Re: try-catch was RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread Sean A Corfield
On Tuesday, Oct 15, 2002, at 07:51 US/Pacific, S. Isaac Dealey wrote: I suppose I should clarify by saying that I haven't simply disregarded the original intent of cftry all-together. I do use it mostly for error handling, although much of it is for custom error handling, such as server

Re: try-catch was RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread S . Isaac Dealey
There have been a handful ( maybe a half dozen ) situations where I found the cftry was extremely helpful in creating an easily human read/writeable codeblock where the only alternative I could think of would have been a horrible mess of spaghetti code. Yes, that is true. There are

Re: try-catch was RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-15 Thread Sean A Corfield
On Tuesday, Oct 15, 2002, at 17:26 US/Pacific, S. Isaac Dealey wrote: Isaac the Butcher of Fusion ... :) Careful, that might stick! :) [horrific factorial implemented with try/catch snipped] Of course not... For starters, there are existing UDF's on cflib.org to handle factorials. :P And I'm

Re: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-14 Thread Matt Robertson
No, the ZIPs aren't common usage, but I've certainly had to deal with it a lot. Just used them to illustrate the point. Another issue with the same application was doing age ranges. Simple to type ''30 to 45'' and annoying to have to type out ''30,31,32,33...'' etc. What I'm curious about

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-14 Thread Rob Rohan
: BlueDragon (was RE: How is CFMX J2EE implemented?) No, the ZIPs aren't common usage, but I've certainly had to deal with it a lot. Just used them to illustrate the point. Another issue with the same application was doing age ranges. Simple to type ''30 to 45'' and annoying to have to type out

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-14 Thread Mosh Teitelbaum
://www.evoch.com/ -Original Message- From: Rob Rohan [mailto:[EMAIL PROTECTED]] Sent: Monday, October 14, 2002 6:48 PM To: CF-Talk Subject: RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?) Since we are on a wish list, I would rather just have the ability to use

Re: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-14 Thread S . Isaac Dealey
No, the ZIPs aren't common usage, but I've certainly had to deal with it a lot. Just used them to illustrate the point. Another issue with the same application was doing age ranges. Simple to type ''30 to 45'' and annoying to have to type out ''30,31,32,33...'' etc. Yea, I'd probably

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-14 Thread S . Isaac Dealey
Since we are on a wish list, I would rather just have the ability to use variables in a case statement. Then you could do a hack like cfscript myrange=; for(i=30; i lt 45; i=i+1){ devnull = listAppend(myrange,i,,);l } /cfscript cfswitch expression=#myswitch# cfcase

RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-14 Thread Rob Rohan
]] Sent: Monday, October 14, 2002 5:13 PM To: CF-Talk Subject: RE: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?) Since we are on a wish list, I would rather just have the ability to use variables in a case statement. Then you could do a hack like cfscript myrange

Re: switch-case was RE: BlueDragon (was RE: How is CFMX J2EE implemented?)

2002-10-14 Thread Sean A Corfield
On Monday, Oct 14, 2002, at 17:13 US/Pacific, S. Isaac Dealey wrote: There is another way to simulate variables or ranges in a case statement with a cftry and cfcatch blocks... try/catch is a pretty heavy operation - you should only use it for (unexpected) error cases, not normal