jimrandomh wrote:
Saurabh Agarwal wrote:

Is there any Coding Guidelines for Palm OS Programming.
I want to prefix my variables with some standard string/char which can tell the data type.


For example:
b is for Boolean
d is for Double
rc for RectangleType
p for Pointer (EventPtr).


Hungarian notation is a legacy of K&R C which no one should
ever adopt.

I think it might have been Charles Simonyi who came up w/ Hungarian notation, not K&R. And not to start a coding style debate here, but what's wrong w/ K&R style? I use it for the most part and it works reasonably well for me.


Other than that, I agree about the lameness of hungarian notation.
I used to use it myself in a limited manner but it just got annoying when changing variable types. I do still use a scope prefix though to indicate global or member variables.


/*
 * Matt Graham
 * Palm OS Developer
 * www.healthramp.com
 */

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to