??? 05/08/08 23:37 Read: times |
#154598 - What's in a name? Responding to: ???'s previous message |
'C' allows you to give meaningful names to your functions - but there is quite some skill and thought needed in coming up with really good names!
What you want is something that fully and precisely encapsulates the purpose & action of the function, without being so long-winded as to be unwieldy! The name "Hex2Ascii" could be improved upon in a couple of areas: 1. The input to the function is just a numeric value: it isn't specifically "hex" - so using "hex" in the function name may not be the best idea. 2. The function doesn't convert its entire input parameter to ASCII - only one nibble of it. Bearing these in mind, a better name might be "Nibble2Ascii"... |