[jawsscripts] Re: how safe are close variable names do people reckon?

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 31 May 2010 16:16:58 +1000

Hi Jackie.
yep, I hear that.  tanks for the tip on this eh.

I tend to do that most times, although I can get lazy from time to time and 
not do it eh. like writing one I just did, called sA, coz the second half of 
my line was gunna be, sB, but then I never ended up needing a second half of 
the line variable after all, just doing stringChops to get it etc, so, I'm 
sure in a year or two I'll be scratching my head wondering what exactly sA 
was all about. <grin.> I see the wisdom in being pedantic about naming 
variables though eh.

this whole new array thing is proving pretty interesting in saving lots and 
lots of multiple variable needs eh.  and I'm only seeing the bear bones, the 
mere surface implementations of it's usefulness at present.  but, from my 
glimmerings, it looks to be a rather handy feature to have! no wonder all 
you pros have been crying out for it for ages.  wonder why they took so long 
implementing it.


----- Original Message ----- 
From: "Jackie McBride" <abletec@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, May 31, 2010 2:54 PM
Subject: [jawsscripts] Re: how safe are close variable names do people 
reckon?


> Geoff, it's not a problem. However, 1 of the things I advocate is
> 'self-documenting code'. Whereas integers like i can be used
> w/impunity as counters, as a rule, it's so much better to give
> descriptive names to your variables so it's clear to u, even a year or
> more later, as well as to any1 else who may have to maintain your
> code, what exactly u were on about when u wrote it.
>
> On 5/30/10, Geoff Chapman <gch@xxxxxxxxxxxxxxxx> wrote:
>> right. yes I hear you on that one. thanks Chris.
>>
>> ----- Original Message -----
>> From: "Christopher Chaltain" <chaltain@xxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Monday, May 31, 2010 1:56 PM
>> Subject: [jawsscripts] Re: how safe are close variable names do people
>> reckon?
>>
>>
>>>I think they're perfectly safe. I don't think a compiler, language,
>>> preprocessor or anything like that will have a problem with similar but
>>> different variables. I think the biggest danger here is with the
>>> programmer.
>>> If the variables aren't descriptive enough or are too similar than
>>> mistakes
>>> might be made or it might get confusing, especially when maintaining the
>>> script or program.
>>>
>>>
>>> --
>>> Christopher
>>> chaltain@xxxxxxxxx
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
>>> Sent: Sunday, May 30, 2010 10:49 PM
>>> To: jawsscripts@xxxxxxxxxxxxx
>>> Subject: [jawsscripts] how safe are close variable names do people 
>>> reckon?
>>>
>>> Mighty Scripters.
>>>
>>> Just checking on general thoughts here, but, how safe do people reckon 
>>> it
>>> would be, re potential confusion of processing, to be dealing with
>>> variable
>>> names that are like reeeally close together? like, say, sLine, and 
>>> sLine1
>>> for example?
>>>
>>> you reckon the scripting engine, or whatever it's called, would be 
>>> totally
>>> comfortable with that? or, do people reckon one ought to avoid making
>>> variables that are so close in structure that their string names are 
>>> only
>>> different by the omission of one single character at the end, would be 
>>> in
>>> any way dangerous?
>>>
>>> thanks.
>>>
>>> geoff c.
>>>
>>> __________�
>>>
>>> View the list's information and change your settings at
>>> http://www.freelists.org/list/jawsscripts
>>>
>>
>> __________�
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
>>
>
>
> -- 
> Change the world--1 deed at a time
> Jackie McBride
> www.abletec.serverheaven.net
> Please join me Saturday, 11/7, on my walk against breast cancer by
> making a donation at:
> http://main.acsevents.org/goto/larkspur>
> __________�
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
> 

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: