I think Dan has got it right. Write it as if someone may take it on...NOW.
BTW, if you ask me they should make the prefix determine the data type. As in if you type Dim strVariable that's enough code for the compiler to understand vs. adding As String.
Perhaps, but that would be a rigid have-to kind of naming convention, wouldn't it.
I think THAT would be resisted more than anything currently in place.
It would mean you could not use sVariable. You would use strVariable. Hmmmm, that would go over like a lead balloon. Can you hear the conspiracy theory against Microsoft? The "fascist" forcing of code writing?
Would be handy though. Even if the compiler would accept "standard" prefixes, but still allow explicit data type statements.
Dim strVariable - makes a String (not a Variant)
Dim sVariable As String - makes a String explicitly
Dim sVariable - makes a Variant
Hmmmm, I don't know. Looks too easy to make lots of Variants by mistake.
Nope, it may not be perfect, but the way it is seems a reasonable compromise.
If a coder is consistent and reasonably comprehensive in names, then 99 times out of 100 another coder can figure it out.
As for using expletives...I have seen this. Rather sophomoric. Any time I have ever seen it, the code was poorly written.
Gerry
My paintings and sculpture