Re: Run the Same Macro on Multiple Files



I think 'requiring' prefixes would be overkill. VB/VBA determines data type
from the declaration, which is all it needs for compilation.


"James Reid" <a8736d53@xxxxxxxxxxx> wrote in message
news:1154643680.126793.280890@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Invidious?" Don't you mean "insidious?" :-)

IMHO, programming languages should require prefixes, not only for
clarity, but also so as to speed up the compilation / interpretation
process. Perl & PHP do it to some extent. In JavaScript a "$" prefix is
allowed for variable names, but is seldom used.

Maybe I'll follow your example, Jezebel, and try to come up with my own
prefix standards.

Jezebel wrote:
The p prefix is my own variable naming convention: p = procedure-level, m
=
module-level, g = global. There are other convetions that also work well
(eg
using the prefix to indicate data type). It seems to me that scoping
errors
are the more serious issue (I've never had problems debugging type
errors,
but scoping problems can be invidious); but the important thing is to
choose
a convention you like, and stick to it. It will save you a *lot* of time
long-term.



.



Relevant Pages

  • Re: What is the standard for naming objects?
    ... When the prefix is not enough to determin an object's type then the variable name should pick up the slack. ... Example: A method for making the dog bark could be called: MakeDogBark(), ... Examples: storing someone's age in a byte: Dim iAge As Byte ... There is no need for data typing on local variables because functions/properties/etc are usually small enough that you can refer to the data type by simply looking up a few lines. ...
    (microsoft.public.dotnet.general)
  • Re: Boolean Naming Conventions
    ... do you prefix every database column with the data type? ... all are fairly clear on the data type without saying it. ... why imply datattype in the name? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Boolean Naming Conventions
    ... do you prefix every database column with the data type? ... all are fairly clear on the data type without saying it. ... why imply datattype in the name? ...
    (microsoft.public.sqlserver.programming)
  • Re: To Richard Heathfield: enoughs enough
    ... prefix denotes not the /type/ of the data, but the /purpose/ of the data. ... In your example, the but_ prefix refers not to the data type of the object, ... you could justify retaining the name even if you changed it ...
    (comp.programming)
  • Re: Building solution from the command line
    ... The solution gets built. ... Without the /out options I don't see compilation ... Is there a way to eliminate this prefix? ...
    (microsoft.public.vsnet.ide)

Loading