[AccessD] Naming Conventions

Gustav Brock gustav at cactus.dk
Thu Aug 5 10:01:52 CDT 2004


Hi Brett

OK, it's not Friday yet but I did read what you wrote: especially.

>> Makes a huge difference, especially when dealing
>> with nested loops.

Had you written:

>> Makes a huge difference when dealing with nested loops.

I would have been silent.

So, you would prefer the syntax:

  If I = 2 Then
    ' Do stuff
  End If I

Now, did I qualify for joining Arthur's "Club of Pendants"??

/gustav


>> A huge difference - and added readability - for a single loop?
>> Is that you Brett?

> Um, take a moment to read my response before jumping all over it.  I
> said:

>> Makes a huge difference, especially when dealing 
>> with nested loops.

> And yes, it does make a difference, even with a single loop.  I don't
> have to scroll up a page of code to find the loop variable name, hence
> improved readability.

> But folks, Gustav is absolutely correct.  It is not NECESSARY to specify
> the variable name in a Next statement.  Nor is it NECESSARY to comment
> your code or use consistent naming conventions.  Some of us just do
> these things for our own *special* reasons ;-)
 

> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
> Sent: Thursday, August 05, 2004 8:48 AM
> To: Access Developers discussion and problem solving
> Subject: Re: [AccessD] Naming Conventions

> Hi Brett

>>>You don't need the last I; Next will do.

>> While you don't NEED the last I, many developers include it for 
>> readability sake.  Makes a huge difference, especially when dealing 
>> with nested loops.

> A huge difference - and added readability - for a single loop?
> Is that you Brett?

> /gustav

> PS:
> --------------Please open with care!------------ This message will
> bypass some of your spam filtering rules.

>> -----Original Message-----
>> From: accessd-bounces at databaseadvisors.com
>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav 
>> Brock
>> Sent: Thursday, August 05, 2004 3:51 AM
>> To: Access Developers discussion and problem solving
>> Subject: Re: [AccessD] Naming Conventions


>> Hi Drew

>>> What's wrong with:

>>>  For I=1 to 50
>>>
>>>  Next I

>> You don't need the last I; Next will do.

>> /gustav




More information about the AccessD mailing list