I have a number of COM DLLs which provide tools for scripters. The problem I've been having with them over the years has been finding a suitable naming scheme for the individual functions. For example, is it
- WriteFileAscii, or
- FileWriteAscii, or
- AsciiFileWrite, or
- AsciiWriteFile, or
- some other thing?
Is it Noun + Verb + Adjective or is there some other approach that would make things more obvious to the programmer? In the above, for instance, there's also a Unicode version, as well as Read. And conceivably as well as File there could be Socket or some other sink.
Does one normally identify what the result is going to be in the naming of the function? Returns can be, for example, Variant, VariantArray, String, Array of String, Number, Array of Number, Collection, etc.
And, maybe finally, there's the question of whether one is Putting, Setting, Letting, Getting ...
Are there any standards that one might adhere to?
Kind regards,
Bruce (bugmagnet)