Klatuu said:
I really don't know c++, but my understanding is it compiles to an
executable
.exe. VBA, on the other hand, is really an interprative language and only
compiles to a tokenized state. Whether coding style affects how it is
compiled, I don't know.
I was taught that the computer worked for me, not I for it. I was coding for
humans, not for the machine. I do not care which is 30 microseconds faster
than the other.
It just seems natural for me to avoid double negatives, as I would in
speech.
It certainly always boils down to perference and shop standards. My
personal preference is to make the code as easy to read as possible. I am
also a coding minimalist. If I have to do the same operation more than
once,
it will probably become a function, for example.
I was also taught to be minimalist, and use many subroutines and functions,
using descriptive names. "Do it in one page.". At first I cried for the
wasted machine cycles, but learned through experience the wisdom. Then
discovered what virtual memory and cache was, and doing it all in one page
had a different implication. Small was indeed beautiful.