Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
>Out director has said that we must find another way to name our variables as he finds it difficult to read. Currently we use lcMyVariable ....
I'd say 70% of the FoxPro community names variables that way. Anyone coming to the project from the outside would most likely feel "at home" with that convention.
> ... He would like to use MyVariable_lc instead.
Aaack! You have to go all the way to the end of the word to find out some important things like clues to the data type and scope. When "lc" is used as a prefix then variables sort nicely, when used as a suffix it doesn't help at all.
> We were also considering lc_MyVariable ...
I'd find that acceptable but it looks choppy.
> ... one person thought that MyVariableLC was reasonable.
Again, you have to read all the way to the end of the word to find out what you really want to know. If I worked for your boss I'd hate being held to a standard that no one else uses. If you used lcMyVariable you'd be using the most common convention.
How about opening up a few Hentzenwerke books or Adivsor magazines (you do have them don't you?) and showing your boss the conventions used there.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only