|
I've never seen much value in Hungarian notation, myself.
...(snip)...
So I tend to use a prefix that relates to the service program. Each service program in our system has a unique prefix, like say, PURCH is used for the purchase order service program. the constants (as well as prototypes, data structure templates, module names, etc) are all prefixed by PURCH.. and you have PURCH_SUCCESS and PURCH_FAIL. That way, it never conflicts, because other service programs don't start with PURCH.
To me, that's far more valuable than hungarian notation.
...(snip)...
I also prefer to type my constant names in ALL_UPPER_CASE, and type my variables in MixedCase or lowercase. That way, there's a visual clue that you're working with a constant vs. a variable.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.