rks in cfscript but not in cftags syntax.
>
> Regards,
> Andrew Scott
> http://www.andyscott.id.au/
>
>
> > -Original Message-
> > From: Peter Boughton [mailto:bought...@gmail.com]
> > Sent: Thursday, 2 September 2010 8:26 PM
> > To: cf-talk
&g
On Wed, Sep 1, 2010 at 9:50 AM, Russ Michaels wrote:
>
> defo better to make sure they are defined.
> Also using isDefined() is also bad as this search every single scope for
> your variable and is thus quite slow and can potentially cause timeouts.
> Much better to use StructKeyExists() and onl
>>Also using isDefined() is also bad as this search every single scope for
your variable
CFPARAM will also search for the variable exactly the same way in order to
create it if it does not exist.
What's the big differrence?
>> and can potentially cause timeouts.
Wow! Where do you hide your
On Thu, Sep 2, 2010 at 8:23 AM, Steve Lichtenberg
wrote:
>
> Yes it does :-). In .virc set up aliases for anuything you want. use them
> in update mode not insert mode.
touche'
~|
Order the Adobe Coldfusion Anthology now!
ht
Yes it does :-). In .virc set up aliases for anuything you want. use them
in update mode not insert mode.
--S
^
On Thu, Sep 2, 2010 at 8:16 AM, Rick Root wrote:
>
> On Thu, Sep 2, 2010 at 5:00 AM, Peter Boughton
> wrote:
> >
> >> That coupled with StructKeyExists is a pain to type!
> >
>
On Thu, Sep 2, 2010 at 5:00 AM, Peter Boughton wrote:
>
>> That coupled with StructKeyExists is a pain to type!
>
> Why on earth would you *type* it!?
"vi" doesn't do code completion? lol
~|
Order the Adobe Coldfusion Antholog
Ok it works in cfscript but not in cftags syntax.
Regards,
Andrew Scott
http://www.andyscott.id.au/
> -Original Message-
> From: Peter Boughton [mailto:bought...@gmail.com]
> Sent: Thursday, 2 September 2010 8:26 PM
> To: cf-talk
> Subject: Re: CFParam vs. IsDefined
>
Hmmm, maybe they've changed the default.
Goto Windows>Preferences and type "keys" in the filter box.
That should bring the key binding panel, type "word" in that.
Look for "Word Completion" option(s) and it'll list what the binding is.
If it still doesn't work, check the "When" value - I've go
I'm very interested. I just started using Aptana (coming from Homesite+) and
I really really want to speed up my dev to where I was at with HS+.
I'd love some more hotkey and snippet info.
On Thu, Sep 2, 2010 at 5:00 AM, Peter Boughton wrote:
>
> > That coupled with StructKeyExists is a pain t
cf-talk
> Subject: Re: CFParam vs. IsDefined
>
>
> >This must be a CFEclipse thing as CFBuilder is CTRL-SPACE
>
> That's code completion. Word completion is faster (when you know what
> you want).
>
> These are all Eclipse things (and will exist in any other IDE wort
>This must be a CFEclipse thing as CFBuilder is CTRL-SPACE
That's code completion. Word completion is faster (when you know what you want).
These are all Eclipse things (and will exist in any other IDE worth using), so
available for both CFEclipse and CFBuilder.
~~
This must be a CFEclipse thing as CFBuilder is CTRL-SPACE
Regards,
Andrew Scott
http://www.andyscott.id.au/
> -Original Message-
> From: Peter Boughton [mailto:bought...@gmail.com]
> Sent: Thursday, 2 September 2010 7:01 PM
> To: cf-talk
> Subject: Re: CFPara
Oh, just to point out, ske and skel are custom ones I've created. They're not
default commands.
Shortcut keys may vary too.
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-
> That coupled with StructKeyExists is a pain to type!
Why on earth would you *type* it!?
This is exactly why your IDE has Word Completion, Snippets and Templates!
"Str" then completes word to StructKeyExists
(press again to cycle through other commonly used words)
"ske" then snippet for St
A classic issue yesterday related to isDefined():
This worked perfectly:
//pass boolean to determine if the given field is null in the
stored proc (1=submitted, 2=finalized)
if(arguments.status eq 1){
submitted = false;
finalized =
On Wed, Sep 1, 2010 at 5:56 PM, Rick Root wrote:
>
> Personally I like to things that I know are supposed to
> exist, and I will go both ways on page variables that may or may not
> exist.
>
> I prefer to param it and then test for a valid value than to test for
> isDefined()
>
>
Yup, and you
Personally I like to things that I know are supposed to
exist, and I will go both ways on page variables that may or may not
exist.
I prefer to param it and then test for a valid value than to test for
isDefined()
Ie...
(or )
Holy Crap!
Rick
~
The only general advantage I see is that you are reserving memory no matter
what, even though it's not much, where as with the isDefined, your just
checking, rather than reserving that memory.
>I prefer to CFParam my vars with a default value of a zero len string or a 0
>for numeric values. Th
>I prefer to CFParam my vars with a default value of a zero len string or a 0
>for numeric values. Then I skip the isdefined and just test against the
>value. Well recently someone I know said that it's better to test if it's
>defined. Is there a pro or con to doing it my way vs. IsDefined ?
Ther
gt; -Mark
> > >
> > > Mark A. Kruger, MCSE, CFG
> > > (402) 408-3733 ext 105
> > > Skype: markakruger
> > > www.cfwebtools.com
> > > www.coldfusionmuse.com
> > > www.necfug.com
> > >
> > >
> > >
> > >
Michael Grant wrote:
>
> I prefer to CFParam my vars with a default value of a zero len string or a 0
> for numeric values. Then I skip the isdefined and just test against the
> value. Well recently someone I know said that it's better to test if it's
> defined. Is there a pro or con to do
ct about that - but it's not typically a performance
>> problem
>> > in
>> > my view. More of a "buggy/security" type problem :)
>> >
>> > -Mark
>> >
>> > Mark A. Kruger, MCSE, CFG
>> > (402) 408-3733 ext 105
>> > Skype: markakr
On Wed, Sep 1, 2010 at 8:54 AM, John M Bliss wrote:
>
>
>
>
>
Try that with - I suspect
setVariable() is slowing that down.
> #Evaluate(getTickCount() - starttick)#
You don't need evaluate() here BTW.
In general, micro-benchmarks like this aren't really useful. For
example, you're gener
fwebtools.com
> > www.coldfusionmuse.com
> > www.necfug.com
> >
> >
> >
> > -Original Message-
> > From: Russ Michaels [mailto:r...@michaels.me.uk]
> > Sent: Wednesday, September 01, 2010 10:51 AM
> > To: cf-talk
> > Subject: Re: CFP
one perm in this
set
SESSION.p.nav.SOMEPERMISSION From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Wednesday, September 01, 2010 11:36 AM
> To: cf-talk
> Subject: CFParam vs. IsDefined
>
>
> I prefer to CFParam my vars with a default value of a zero len string
> or a 0 for
Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Wednesday, September 01, 2010 10:51 AM
> To: cf-talk
> Subject: Re: CFParam vs. IsDefined
>
>
> defo better to make sure they are defined.
> Also using isDefined() is also bad as this search every single scope for
> your varia
riginal Message-
From: Russ Michaels [mailto:r...@michaels.me.uk]
Sent: Wednesday, September 01, 2010 10:51 AM
To: cf-talk
Subject: Re: CFParam vs. IsDefined
defo better to make sure they are defined.
Also using isDefined() is also bad as this search every single scope for
your variable and is
; >
> > -Original Message-
> > From: Michael Grant [mailto:mgr...@modus.bz]
> > Sent: Wednesday, September 01, 2010 11:36 AM
> > To: cf-talk
> > Subject: CFParam vs. IsDefined
> >
> >
> > I prefer to CFParam my vars with a default value of a z
something went wrong. And
> if you didn't define it and it is there you should be ignoring it.
>
> Steve
>
> -Original Message-
> From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Wednesday, September 01, 2010 11:36 AM
> To: cf-talk
> Subject: CFParam vs. I
> I prefer to CFParam my vars with a default value of a zero len string or a 0
> for numeric values. Then I skip the isdefined and just test against the
> value. Well recently someone I know said that it's better to test if it's
> defined. Is there a pro or con to doing it my way vs. IsDefined ?
t: CFParam vs. IsDefined
I prefer to CFParam my vars with a default value of a zero len string or
a 0
for numeric values. Then I skip the isdefined and just test against the
value. Well recently someone I know said that it's better to test if
it's
defined. Is there a pro or con t
I prefer to CFParam my vars with a default value of a zero len string or a 0
for numeric values. Then I skip the isdefined and just test against the
value. Well recently someone I know said that it's better to test if it's
defined. Is there a pro or con to doing it my way vs. IsDefined ?
Thanks.
32 matches
Mail list logo